|
Hi!
I need to have a sitewide sidebar which will contain 5 latest comments to articles. Should I use elements with requestAction + cache in default layout or it can be achieved in more simple way? I use CakePHP 2.2.1. Thanks.
-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Get and Set the data in your app_controller On Aug 16, 2012, at 12:12 PM, Nvp <[hidden email]> wrote: Hi! -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
I'm new to CakePHP, can you please provide me some example or expand the idea?
On Thursday, August 16, 2012 11:27:38 PM UTC+4, ibejohn818 wrote: -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
In reply to this post by Nvp
I would go with elements + requestAction + caching. This is easier to
test and probably more correct OR If you have a custom helper in your project - use the comments model and write a helper function Tarique On Fri, Aug 17, 2012 at 12:42 AM, Nvp <[hidden email]> wrote: > Hi! > I need to have a sitewide sidebar which will contain 5 latest comments to > articles. > Should I use elements with requestAction + cache in default layout or it can > be achieved in more simple way? > > I use CakePHP 2.2.1. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [hidden email]. > To unsubscribe from this group, send email to > [hidden email]. > Visit this group at http://groups.google.com/group/cake-php?hl=en-US. > > -- ============================================================= PHP for E-Biz: http://sanisoft.com ============================================================= -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Hello Friends,
For example of requestaction + cache,Please refer below link, http://bakery.cakephp.org/articles/digitalspaghetti/2007/04/10/optimizing-your-cakephp-elements-and-views-with-caching Thanks & Regards Chetan Patel -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
| Powered by Nabble | Edit this page |
