2

从 Joomla 1.5.22 升级到 1.6 beta 14 后,我在尝试调用 xml 文件中的参数时收到此错误:致命错误:调用非对象上的成员函数 getLabel()

代码在 view.php

  • form->getLabel('max_chars'); ?> 表单->getInput('max_chars'); ?>
  • 从models/setting.xml获取的max_chars参数,代码为:

    我做错事了吗..?请帮助我......

    4

    1 回答 1

    1

    I had a similar problem once I commented the lines out I got an error message

    Model class compontentModelUser not found in file

    I had accidentally replaced User model with a models for an JModelList instead of JModelAdmin

    make sure your using the right model is all I'm saying.

    It would be easier to know what the issue is with more of your code.

    Hope this helps a little...

    于 2013-03-06T15:52:33.297 回答