Zend Framework Session: Seing All Values at NamespaceTag: Category: PHP Frameworkpost: 23 Apr 2008 read: 364 Zend Framework Session Step By Step Tutorial - Part 4: This is a little tips to show all value at a namespace. As we know, session can have behavior like array. So, we can show values like array. Look this sample:
Ok, try to test it. We have put session at loginform and userpage page. Now, we want to show request statistic for that page. Open your "UserController.php" within application/controllers. Add following method:
Then, create a view for this action controller. Create a file named "stats.phtml" within application/views/scripts/user. Leave blank. Ok, try to point your browser to http://localhost/test/zend/helloworld/web_root/user/stats. You may get such as:
Values depend on number of visiting.
| ||
| | Give Your Opinion | Recommend |
|

