Hi,

> Basically i am looking for something similar like View Helpers in
> Zend. We can access the model data in views using view Helpers. Is
> there something similar in cakephp.

Short answer: you can't.

Longer answer: as the current version of cake is both php4 and 5
compatible, it uses arrays for data, not objects because objects are v
slow and limited in php4. This is why you pass the data from the model
to the controller to the view, and can't access models directly, even
read only, from the view.

Cake 1.3 I believe will use objects, certainly the future cakephp 2 and 3 will.

hth

Jon
ps: A more descriptive subject would probably have led to an answer
sooner - I only looked because I was curious, not because I knew I
could help

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to