模板文件Index_mnsz6.html能正常调用IndexAction.class.php(里面的是class IndexAction extends ba
我想在模板文件Index_mnsz6.html中也能正常调用CardAction.class.php的一些函数该怎么操作,是不是涉及到了跨模块调用呢?
我已经在IndexAction.class.php,添加了代码
public function index(){
$Card = R('Card/signscore');
}signscore就是我想调用的方法名,我这样写对吗?我在IndexAction.class.php中添加了这段代码之后,还需要操作什么才能在
最佳答案