| Subject: | Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3? |
|---|---|
| From: | Louie Miranda |
| Date: | Thu, 30 Sep 2010 08:54:51 +0800 |
|
I got it. Add the variables on function beforeFilter() { $cartcount = '123'; $this->set(compact('cartcount')); } on app/app_controller.php It worked. -- Louie Miranda - Email: lmiranda@xxxxxxxxx - Web: http://www.louiemiranda.com On Thu, Sep 30, 2010 at 8:22 AM, Louie Miranda <lmiranda@xxxxxxxxx> wrote: Data variables did not worked when placed on views/layouts/default.ctp? 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?, Louie Miranda |
|---|---|
| Next by Date: | Re: Issue getting deeper info, Michael Gaiser |
| Previous by Thread: | Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?, Louie Miranda |
| Next by Thread: | Model validates when needed field is not available in $data array!, psybear83 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |