マイヘルパーファイルAcl.phpは、ライブラリ/ヘルパーであると私は以下のように、ブートストラップファイルに含まれている: - Zend_Application_Bootstrap_Bootstrap ヘルパーファイルにアクセスできません
がクラスブートストラップが伸び{
protected function _initPlugins()
{
$helper= new Helper_Acl();
// $helper->setRoles();
// $helper->setResources();
// $helper->setPrivilages();
// $helper->setAcl();
}
}
しかし、その譲渡エラー、Saying - >致命的なエラー:クラス 'Helper_Acl'がBootstrap.phpに見つかりませんでした。以下は
私のヘルパーファイルbootstrap.phpの中
クラスHelper_Acl {
public $acl;
public function __construct()
{
$this->acl = new Zend_Acl();
}
}
が、それは自動的にあなたのアクションヘルパーやビューヘルパーを見つける必要があり、インスタンスのZend \ Controllerの\ Action \ Helper \ Helper_Acl.php。 – mpm