Re: [fw-general] Setting up controllers for common vars etc

2008-07-04 Thread AJ McKee
Hi Matthew & Carlton, Thanks for the suggestions. I decided in the end to use an action helper and preDispatch to do this. So here is my current idea on it. So far so good it seems to work; 1. Create and action helper _actionController->_MyCoolAppsRegistry = Zend_Registry::getInstance(); } }

Re: [fw-general] Setting up controllers for common vars etc

2008-07-03 Thread Carlton Gibson
On 3 Jul 2008, at 12:51, AJ McKee wrote: I have several Controllers that all do various things. However there are common things I wish them all to do. Mostly just set up vars for ease of use. Eample protected $_myRegistry = null; protected $_myDebug = false; public function init() { $this-

Re: [fw-general] Setting up controllers for common vars etc

2008-07-03 Thread Matthew Weier O'Phinney
-- AJ McKee <[EMAIL PROTECTED]> wrote (on Thursday, 03 July 2008, 12:51 PM +0100): > Please excuse my ignorance here. > > I have several Controllers that all do various things. However there > are common things I wish them all to do. Mostly just set up vars for > ease of use. Eample > > protected