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()
{ return "testing"; }
}
----------------------------------------
I had reported this problem as a bug to Issue tracker.
http://framework.zend.com/issues/browse/ZF-10408
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-View-could-not-auto-loading-Default-View-Helper-Test-for-Module-Default-tp2516960p2516960.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论