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, 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 plugin?

ie in bootstrap

$controller->setControllerDirectory($controllers)
  ->throwExceptions(true)
  ->setParam('config', $config)
  ->setParam('db', $db)
  ->setParam('site_name', $site_name)
  ->setParam('translate', $translate)
  ->setParam('view', $view)
  ->registerPlugin(new Zend_Plugin_Auth())
  ->registerPlugin(new Zend_Plugin_Translation());

what i want to do in a plugin is:

$this->_config    = $this->getInvokeArg('config');

is this possible?

Cheers

Ian




--
Maurice Fonk

[EMAIL PROTECTED]
http://naneau.nl/

Scio me nihil scire

Reply via email to