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

前端 未结 7 1616
忘掉有多难
忘掉有多难 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 15:06

    Since version 1.8 you can use the below code in your Controller:

    $my = $this->getInvokeArg('bootstrap')->getOption('my');
    

提交回复
热议问题