How can I access the configuration of a Zend Framework application from a controller?

前端 未结 7 1634
忘掉有多难
忘掉有多难 2021-01-30 14:18

I have a Zend Framework application based on the quick-start setup.

I\'ve gotten the demos working and am now at the point of instantiating a new model class to do some

7条回答
  •  温柔的废话
    2021-01-30 14:51

    $this->getInvokeArg('bootstrap')->getOptions();
    // or 
    
    $configDb = $this->getInvokeArg('bootstrap')->getOption('db');
    

提交回复
热议问题