English 中文(简体)
找不到具有自定义视图帮助程序的插件
原标题:Plugin not found with custom view helper

我需要一些关于自定义视图帮助程序的帮助。

我的文件夹结构如下:

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

如果我转到<code>localhost/smjestaj</code>,我会得到以下错误:

Message: Plugin by name LoadSkin was not found in the registry; used paths: Smjestaj_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/

我试图在application.ini中注册我的助手,但没有成功。

如果我复制我的文件夹view->;助手->;php加载到我的模块smjestaj中,这是有效的,但我认为这不是正确的方法。

问题回答

我相信这就是您想要的:从控制器或窗体中解析视图辅助对象的位置

请注意,Zend正在查看的路径与您实际拥有帮助者的路径不同。您必须告知Zend您将帮助者存放在何处。引用的问题提供了两种解决方案:在引导程序或application.ini中执行。





相关问题
Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

Tagging with Zend Framework

I m trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL ...

dynamicaly adding textboxes to zend_form

I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows ...

热门标签