2011年6月29日

摘要: 运行config的时候,如果cwebapplication定义有public的属性,比如basePath,则不用调用魔术函数__setapplication=》run processrequest || runController|| || ||createController $controller->init(); $controller->run($actionID); || framework/web/CController的run =》runActionWithFilters组件是先注册,待需要用到时候在新建,初始化;比如loginForm.php中的login()Yii 阅读全文
posted @ 2011-06-29 18:40 天空尚兰 阅读(197) 评论(0) 推荐(0) 编辑
摘要: // index.phpYii::createWebApplication()->run();// CApplication.phppublic function run(){ if($this->hasEventHandler('onBeginRequest')) $this->onBeginRequest(new CEvent($this)); $this->processRequest(); if($this->hasEventHandler('onEndRequest')) $this->onEndRequest(ne 阅读全文
posted @ 2011-06-29 09:35 天空尚兰 阅读(674) 评论(0) 推荐(0) 编辑

导航