It's basically a matter of preference.
It is really a matter of practice. Experts will obviously know the
trade-offs of the options, but the point of focusing on a Best Practice
is to generally reduce problems. I would agree with Rob that other than
communicating with the other controller
Matthew Weier O'Phinney wrote:
-- Rob Allen [EMAIL PROTECTED] wrote
(on Tuesday, 08 May 2007, 07:01 AM +0100):
Todd Wolaver wrote:
Yes, I've just run into this myself and I ended up using
the Zend_Controller_Front::getInstance()
i.e.
$this-_config =
-- Rob Allen [EMAIL PROTECTED] wrote
(on Wednesday, 09 May 2007, 03:22 PM +0100):
Matthew Weier O'Phinney wrote:
-- Rob Allen [EMAIL PROTECTED] wrote
(on Tuesday, 08 May 2007, 07:01 AM +0100):
Todd Wolaver wrote:
Yes, I've just run into this myself and I ended up using
the
Todd Wolaver wrote:
Yes, I've just run into this myself and I ended up using
the Zend_Controller_Front::getInstance()
i.e.
$this-_config = Zend_Controller_Front::getInstance()-getParam('config');
Todd
Isn't this just like treating the front controller as if it's a
registry? If so, I
-- Rob Allen [EMAIL PROTECTED] wrote
(on Tuesday, 08 May 2007, 07:01 AM +0100):
Todd Wolaver wrote:
Yes, I've just run into this myself and I ended up using
the Zend_Controller_Front::getInstance()
i.e.
$this-_config = Zend_Controller_Front::getInstance()-getParam('config');
Todd
Hi
Can I get at Parameters I have set within the front controller within a
plugin?
ie in bootstrap
$controller-setControllerDirectory($controllers)
-throwExceptions(true)
-setParam('config', $config)
-setParam('db', $db)
-setParam('site_name', $site_name)
-setParam('translate',
Because the front controller follows a singleton pattern, can't you just
use $controller = Zend_Controller_Front::getInstance(); and retrieve
parameters from $controller then (with getParam())?
MF
Ian Warner wrote:
Hi
Can I get at Parameters I have set within the front controller within
a
Yes, I've just run into this myself and I ended up using the
Zend_Controller_Front::getInstance()
i.e.
$this-_config = Zend_Controller_Front::getInstance()-getParam
('config');
Todd
On May 7, 2007, at 2:10 PM, Maurice Fonk wrote:
Because the front controller follows a singleton pattern,