Hi, What I meant is placing this in the layout to be available in all parts or pages of the application. I discovered that "requestAction()" method is able to do this in the layout. However, requestAction() method could not able to call private actions - Actions of name start with underscore _ such as _postcount.
My question now is how to make requestAction able to call private action? On Jun 6, 4:20 am, Andras Kende <and...@kende.com> wrote: > Hello, > > in the controller: > $this->set('postcount', $this->Post-find('count')); > > in the view: > <?php echo $postcount; ?> > > Andras > > On Jun 5, 2010, at 6:34 PM, saidbakr wrote: > > > Hi, > > > How could I set dynamic data in the layout? > > > In other word, I need to place the total count of posts in the layout > > footer. > > > My application has posts controller and post model. > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > 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 For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en