How to show latest comments (sitewide)?
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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: How to show latest comments (sitewide)?
Get and Set the data in your app_controller On Aug 16, 2012, at 12:12 PM, Nvp leh...@gmail.com 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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: How to show latest comments (sitewide)?
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: Get and Set the data in your app_controller On Aug 16, 2012, at 12:12 PM, Nvp 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 cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: How to show latest comments (sitewide)?
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 leh...@gmail.com 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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. 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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: How to show latest comments (sitewide)?
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 cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.