开发者

Plugin not found with custom view helper

I need some help with a custom view helper.

My folder structure is like this:

application
 - modules
 - - smjestaj
 - views
 - - helpers
 - - - LoadSkin.php

And if I go to localhost/smjestaj I get this error:

Message: Plugin by name 'LoadSkin' was not found in the registry; used paths: Smjes开发者_如何学编程taj_View_Helper_: /Users/davs/Zend/workspaces/DefaultWorkspace7/1/application/modules/smjestaj/views/helpers/

ZendX_JQuery_View_Helper_: ZendX/JQuery/View/Helper/

Zend_View_Helper_: Zend/View/Helper/

I tried to register my helper in application.ini but with no luck.

If I copy my folders view->helpers->LoadSkin.php to my module smjestaj that works, but I don't think that is the right way to do it.


I believe this is what you're looking for: Resolve view helper location from within the controller or form

Note that the paths Zend is looking at are different from the one you actually have your helpers in. You must inform Zend about where you keep the helpers. The quoted question offers two solutions: doing it in the bootstrap or in application.ini.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜