The kind of thing you are doing is probably done best in a Front Controller Plugin By handling your testing in layout, your have already eaten the cost of processing a request and rendering a view, just to throw it away by redirecting In contrast, performing these checks at some early point in the dispatch cycle - at preDispatch() for example - you never have to load a controller and process the action.
The kind of thing you are doing is probably done best in a Front Controller Plugin. By handling your testing in layout, your have already eaten the cost of processing a request and rendering a view, just to throw it away by redirecting. In contrast, performing these checks at some early point in the dispatch cycle - at preDispatch(), for example - you never have to load a controller and process the action.
I agree with David Weinraub. You can do this in your own Front Controller plugin for example: subscription_state) && isset($userSess->account_type)){ if($userSess->subscription_state == "unpaid" && $userSess->account_type == 1){ $this->getResponse()->setRedirect("/index/login")->sendResponse(); } } } } And Register plugin in Bootstrap. Php $frontController = Zend_Controller_Front::getInstance(); $frontController->registerPlugin(new My_Controller_Plugin_Abc()).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.