一、空模块和空操作 1、空操作 function _empty($name){ $this->show("$name 不存在www.2cto.com"); } 2.空模块(EmptyAction.class.php的文件) class EmptyAction extends Action{ function index(){ //$this->show('
当前模块下(控制器),调用其他模块下的方法: //在CityAction控制器下调用IndexAction控制器下的方法 //直接new下,能后在找到对应方法即可 class CityAction extends Action{ public function tiaozhuan(){ $indexAction = new IndexAction(); $indexAction->index(); } } ?>
Copyright 2001-2010, www.comprg.com.cn, All Rights Reserved 京ICP备14022230号-1,电话/传真:010-82561037 82561614 ,Mail:gaojian@comprg.com.cn
地址:北京市海淀区远大路20号宝蓝大厦E座704,邮编:100089