/home/daomenkou/framework/YiiBase.php(322)
310 if($isClass && (class_exists($className,false) || interface_exists($className,false))) 311 return self::$_imports[$alias]=$className; 312 313 if(($path=self::getPathOfAlias($alias))!==false) 314 { 315 if($isClass) 316 { 317 if($forceInclude) 318 { 319 if(is_file($path.'.php')) 320 require($path.'.php'); 321 else 322 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias))); 323 self::$_imports[$alias]=$className; 324 } 325 else 326 self::$classMap[$className]=$path.'.php'; 327 return $className; 328 } 329 else // a directory 330 { 331 if(self::$_includePaths===null) 332 { 333 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path())); 334 if(($pos=array_search('.',self::$_includePaths,true))!==false)
#0 |
+
–
/home/daomenkou/framework/YiiBase.php(196): YiiBase::import("adminuser.AdminuserModule", true) 191 } 192 else 193 throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.')); 194 195 if(!class_exists($type,false)) 196 $type=Yii::import($type,true); 197 198 if(($n=func_num_args())>1) 199 { 200 $args=func_get_args(); 201 if($n===2) |
#1 |
+
–
/home/daomenkou/framework/base/CModule.php(282): YiiBase::createComponent("adminuser.AdminuserModule", "adminuser", null, array()) 277 { 278 Yii::trace("Loading \"$id\" module",'system.base.CModule'); 279 $class=$config['class']; 280 unset($config['class'], $config['enabled']); 281 if($this===Yii::app()) 282 $module=Yii::createComponent($class,$id,null,$config); 283 else 284 $module=Yii::createComponent($class,$this->getId().'/'.$id,$this,$config); 285 return $this->_modules[$id]=$module; 286 } 287 } |
#2 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(337): CModule->getModule("adminuser") 332 Yii::createComponent($owner->controllerMap[$id],$id,$owner===$this?null:$owner), 333 $this->parseActionParams($route), 334 ); 335 } 336 337 if(($module=$owner->getModule($id))!==null) 338 return $this->createController($route,$module); 339 340 $basePath=$owner->getControllerPath(); 341 $controllerID=''; 342 } |
#3 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(276): CWebApplication->createController("adminuser") 271 * @param string $route the route of the current request. See {@link createController} for more details. 272 * @throws CHttpException if the controller could not be created. 273 */ 274 public function runController($route) 275 { 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); |
#4 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(141): CWebApplication->runController("adminuser") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#5 |
+
–
/home/daomenkou/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#6 |
+
–
/home/daomenkou/index.php(57): CApplication->run() 52 header('Access-Control-Allow-Methods:*'); 53 // 响应头设置 54 header('Access-Control-Allow-Headers:content-type,token,id,userId'); 55 header("Access-Control-Request-Headers: Origin, X-Requested-With, content-Type, Accept, Authorization"); 56 57 Yii::createWebApplication($config)->run(); |