|
|||
|
Okay i'm stuck with a problem. I use Zend's request routings and it works fine for me. How ever in index.php I want to check if user is logged on or not. If no then route user to index controller login action. How to do it best?
PHP Code:
|
|
||||
|
There are several ways to do that, but usually it is implemented as a plugin to the controller. In large web applications you would use Zend_Acl, but it seems you are doing something simple. A way to do this could be to either to extend the action controller or create a controller plugin.
__________________
SpotSec Network Gateway Project on SourceForge SpotSec Network Gateway Project Home SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|