tp框架基础控制器调用方法

	public function indd(){
		//调用该控制器下的某个方法
		$this ->index();
		//跨控制器调用
		$k = A("index");// 创建控制器对象
		$k -> index();
		//跨模块调用
		$k = A("home/index");
		$k -> index();
    }

 

posted @ 2017-07-14 11:33  <一>  阅读(1826)  评论(0编辑  收藏  举报