2010年4月26日星期一

Re: [fw-mvc] view helper

Zend_View uses a plugin loader to autoload helpers. If you want to add your own custom namespace for your helpers, add this line to your application.ini (assuming you're using Zend_Application):

resources.view.helperPath.My_View_Helper = APPLICATION_PATH "/views/helpers"

Just change "My_View_Helper" to whatever class name prefix you want. I usually prefix everything in the default module with "Default_", including my view helpers.

--
Hector


On Mon, Apr 26, 2010 at 4:55 AM, Yaroslav Vorozhko <vorozhko@gmail.com> wrote:
Yes.
Will it be loaded automaticlly?

2010/4/23 holografix . <holografix@gmail.com <mailto:holografix@gmail.com>>


   Hi

   You can name you view helper Zend_View_Helper_Xxxxxx and put the
   file in that folder.

   cheers
   holo

   2010/4/23 huajun qi <qihjun@gmail.com <mailto:qihjun@gmail.com>>


       Got it.

       But why there is a 'helpers' folder there?





--
Location:


--
Yaroslav Vorozhko . Web Developer
web . http://pro100pro.com twi . http://twitter.com/vorozhko
skp . yarik0083

没有评论: