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 <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
