newbie Zend Framework question [SOLVED]
Posted: Wed Apr 09, 2008 8:17 am
Hi,
I'm having great fun getting to know the Zend Framework. I'm very happy with what it's offered me so far.
One question about Controllers & Routers. I need to check on every page that the app has been installed correctly. If Zend_Config can load the database configuration file, I will connect to the database and proceed as normal. But if not, I need to redirect to the install page.
I'm not sure how and where to do this. Is there a way I can issue a redirect from outside a controller, or before the Front Controller even starts? Would I put it in the bootstrap file? Or do I need to run the check in every single Action Controller?
Thanks!
I'm having great fun getting to know the Zend Framework. I'm very happy with what it's offered me so far.
One question about Controllers & Routers. I need to check on every page that the app has been installed correctly. If Zend_Config can load the database configuration file, I will connect to the database and proceed as normal. But if not, I need to redirect to the install page.
I'm not sure how and where to do this. Is there a way I can issue a redirect from outside a controller, or before the Front Controller even starts? Would I put it in the bootstrap file? Or do I need to run the check in every single Action Controller?
Thanks!