How to access shopping cart session for layout.shtml

For programming and general questions on Zend Framework

How to access shopping cart session for layout.shtml

Postby jam007_zend on Tue Jun 12, 2012 2:28 pm

Hello,

This is the first project I am creating with Zend. I use session to create a simple shopping cart and want to show it at a pop-up window when users move mouse over a link "My Cart" any time. The codes for pop-up window are located in layout.shtml. How can I access shopping cart info from layout.shtml? Oy how can I assign shopping cart info to variables so it can be rendered in layout.shtml?

Thanks in advance.
jam007_zend
 
Posts: 4
Joined: Tue Jun 12, 2012 2:12 pm

Re: How to access shopping cart session for layout.shtml

Postby hoainamtran on Wed Jun 13, 2012 9:07 am

i think you can used Zend_Session_Namespace();
i'm using it for history view in my project and it runing good!
hoainamtran
 
Posts: 3
Joined: Wed Jun 13, 2012 8:58 am


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 4 guests