Use an element. You could store the cart contents in a cookie or
session and save the hit on the db as well if you wanted to...

On Wednesday, September 29, 2010, Louie Miranda <[email protected]> wrote:
> Hi,
>
> I have this shopping cart where I am trying to figure out how can I display a 
> query (example numbers of items on cart) and display it on my 
> views/layouts/default.ctp file?
>
> Image
> http://i141.photobucket.com/albums/r50/louiemiranda/debug/shopcart.png
>
> On a normal controller, I would just add this on $this->set. Now, since 
> views/layouts/default.ctp does not have a main controller, how can I 
> propagate date with it?
>
> Any ideas is appreciated.
> --
> Louie Miranda
>  - Email: [email protected]
>  - Web: http://www.louiemiranda.com
>
>
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to