2011-02-06 50 views
1

我跟着上zendcast本教程使用Ajax創建自動完成發現:zendX jQuery插件的名字並沒有在註冊表

http://www.zendcasts.com/autocomplete-control-with-zendx_jquery/2010/07/

我得到「插件的名字‘AutocompleteElement’不在註冊表中的」

必須是與此代碼我在的indexAction

`

$這 - 做發現> view-> autocompleteElement = new ZendX_JQuery_Form_Element_Autocomplete('ac');

$ this-> view-> autocompleteElement-> setLabel('Autocomplete');

$ this-> view-> autocompleteElement-> setJqueryParam('source','index/results');

`

有誰知道我應該尋找到解決這個問題?

回答

0

解決了它,我沒有在index.phtml中正確調用它:/