教程代码在 Joomla 2.5 中不再起作用
我按照 Joomla 开发人员 wiki (http://docs.joomla.org/Developers#Developing_a_Model-View-Controller_.28MVC.29_Component_2) 中的教程创建了 Joomla 组件。在 Joomla 1.7 中一切正常,但当我升级到 Joomla 2.5 时,后端的复选框不再起作用。
我检查了 http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_09#Adding_a_toolbar 和 boxchecked 隐藏字段仍然存在。而且周围的 javascript 仍然是相同的。
有人有同样的问题吗?
I followed a tutorial from the Joomla developer wiki (http://docs.joomla.org/Developers#Developing_a_Model-View-Controller_.28MVC.29_Component_2) to create a Joomla component. It all worked fine in Joomla 1.7, but when I upgraded to Joomla 2.5 the checkboxes in the backend are not working any more.
I checked the code from http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_09#Adding_a_toolbar in Joomla 2.5 extensions and the boxchecked hidden field is still there. Also the javascript around is still the same.
Does anyone has the same problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现了问题。表单名称旁边应有一个 ID。 Joomla 1.7 仅检查名称,而 Joomla 2.5 则检查 id。
I found the problem. The form should have a id next to the name. Joomla 1.7 is only checking on the name, but Joomla 2.5 is checking for the id.
访问此网页链接,它可能对您有用..
http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!2.5_-_Part_13#Articles_in_this_series
visit this weblink, it might be useful to you..
http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!2.5_-_Part_13#Articles_in_this_series