public function indd(){ //调用该控制器下的某个方法 $this ->index(); //跨控制器调用 $k = A("index");// 创建控制器对象 $k -> index(); //跨模块调用 $k = A("home/index"); $k -> index(); }
tp框架基础控制器调用方法
原文:http://www.cnblogs.com/yi11/p/7169259.html