【发布时间】:2013-12-10 11:36:51
【问题描述】:
如何在同一个控制器文件中调用其他方法/函数?
例如:controller.php
class MyController extends JControllerLegacy
{
function test() {
$var = otherfunction();
echo $var;
}
function othermethod() {
return 'something';
}
}
我在浏览器中收到错误消息。 致命错误:“调用未定义函数 othermethod()”。
我很乐意得到帮助...抱歉我的英语不好(;
【问题讨论】:
标签: php joomla controller components