可能重複: How could read application.ini on controller using zend framework application.ini是在ZF一個配置文件。我有更多的設置,而不僅僅是ZF手冊中提到的那些默認設置。但是,如何從我的動作控制器中檢索這些參數?在會話期間存儲此配置的位置最好? 的Bootstrap_Abstract類有getOptions()方法,
TextDomain我跟着這個link的指示成功,現在我的網站是沒有在「平移,()」電話,要求放「區域」多語言。 但我必須把每次我稱之爲TextDomain。 $this->traslate("Hello", __NAMESPACE__) //where __NAMESPACE__ is the text domain.
我想設置TextDomain在onBootstrap方法,而不是把它放在
我想調用位於Mymodule中/ myFolders我的自定義類/ myFile.php在Mymodule中/ bootstrap.php中 這是它的外觀現在: <?php
class Users_Bootstrap extends Zend_Application_Module_Bootstrap {
public function _initAutoload() {