php - Zend_Layout + helperClass -
php - Zend_Layout + helperClass -
i seek utilize helperclass in zend_layout options. create class:
class helper_testi extends zend_controller_action_helper_abstract{ public function init(){ echo "111111111"; $this->fff = 'hello helper'; } public function getmessage(){ echo "=============="; homecoming "message"; } }
and in bootstrap.php seek add together zend_layout:
$options = array('layout' => 'layout','helperclass'=>'../application/controllers/helper/testi'); $layout = new zend_layout(); $layout->startmvc($options);
but when reload browser see exception:
fatal error: uncaught exception 'zend_exception' message 'file "../application/controllers/helper/testi.php" not exist or class "../application/controllers/helper/testi" not found in file'
what wrong? help me please.
try utilize application_path constant in path
php zend-framework bootstrapping zend-layout
Comments
Post a Comment