<?php
class ReportsController extends CController
{
public function __call($name,$argument)
{
echo "test";
}
}
?>
这是我的 Yii 控制器类,当调用index.php?r=reports/testURL 时,它必须调用该__call方法,因为测试方法不存在但它给出了错误The system is unable to find the requested action test错误。