Re: [fw-general] Invoke Arg in Plugin

2007-05-10 Thread Christopher Thompson
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

Re: [fw-general] Invoke Arg in Plugin

2007-05-09 Thread Rob Allen
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 =

Re: [fw-general] Invoke Arg in Plugin

2007-05-09 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Invoke Arg in Plugin

2007-05-08 Thread Rob Allen
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

Re: [fw-general] Invoke Arg in Plugin

2007-05-08 Thread Matthew Weier O'Phinney
-- 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

[fw-general] Invoke Arg in Plugin

2007-05-07 Thread Ian Warner
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',

Re: [fw-general] Invoke Arg in Plugin

2007-05-07 Thread Maurice Fonk
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

Re: [fw-general] Invoke Arg in Plugin

2007-05-07 Thread Todd Wolaver
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,