Re: Best Practice to display data in layout or view
i'm using second option. Model can be created with ClassRegistry::init('ModelName'); to get model instance :)
--
Lep pozdrav, Tilen Majerle
2012/8/11 sanjeev <sanjeevdivekar@gmail.com>
Hello,What is the best practice to display data e.g. list of products, events, news in layout?1. Element - which requires to call requestAction() and also calls beforeFilter from AppController each time2. Helper - need to use Model class in helperRegards,--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home