Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.10.8
-
Fix Version/s: None
-
Component/s: Zend_View
-
Labels:None
Description
I am learning Zend Framework . today I got a problem.
I try to wrote a View_Helper_Testing for my project Default Module.
My project Directory struts is like this :
application/
modules/
default/
controllers
scripts
helpers
account/
controllers
scripts
helpers
----------------------------------------
Zend Framework Could auto loading Account_View_Helper_Test for me from /application/modules/account/helpers;
but it does not work loading Default_View_Helper_Test from /application/modules/default/helpers.
here is my /application/modules/default/controllers/IndexController.php
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
var_dump($this -> view);
}
}
and my /application/modules/account/controller/IndexController.php
<?php
class Account_IndexController extends Zend_Controller_Action
{
public function indexAction()
{
var_dump($this -> view);
} }
}
and the View_Helper is simple:
<?php
class Default_View_Helper_Test extends Zend_View_Helper_Abstract
{
public function test()
}
This not is bug you should configure your helperPath see http://framework.zend.com/manual/en/zend.view.helpers.html