/data/www/trade/libs/yii/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 |
+
–
/data/www/trade/libs/yii/YiiBase.php(196): YiiBase::import("application.behavior.CDbBehavior", 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 |
+
–
/data/www/trade/libs/yii/base/CComponent.php(329): YiiBase::createComponent(array()) 324 * @return IBehavior the behavior object 325 */ 326 public function attachBehavior($name,$behavior) 327 { 328 if(!($behavior instanceof IBehavior)) 329 $behavior=Yii::createComponent($behavior); 330 $behavior->setEnabled(true); 331 $behavior->attach($this); 332 return $this->_m[$name]=$behavior; 333 } 334 |
| #2 |
+
–
/data/www/trade/libs/yii/base/CComponent.php(298): CComponent->attachBehavior("dbbehaviors", array("class" => "application.behavior.CDbBehavior")) 293 * @param array $behaviors list of behaviors to be attached to the component 294 */ 295 public function attachBehaviors($behaviors) 296 { 297 foreach($behaviors as $name=>$behavior) 298 $this->attachBehavior($name,$behavior); 299 } 300 301 /** 302 * Detaches all behaviors from the component. 303 */ |
| #3 |
+
–
/data/www/trade/libs/yii/base/CApplication.php(162): CComponent->attachBehaviors(array("dbbehaviors" => array("class" => "application.behavior.CDbBehavior"))) 157 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 |
| #4 |
+
–
/data/www/trade/libs/yii/YiiBase.php(125): CApplication->__construct(array("behaviors" => array("dbbehaviors" => array("class" => "application.behavior.CDbBehavior")), "name" => "trade", "defaultController" => "Index", "preload" => array("log"), ...)) 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
| #5 |
+
–
/data/www/trade/libs/yii/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/data/www/trade/tradeweb/protected/config/main.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
| #6 |
+
–
/data/www/trade/tradeweb/index.php(218): YiiBase::createWebApplication("/data/www/trade/tradeweb/protected/config/main.php") 213 214 include_once 'load_libs.php'; 215 require_once 'TplHelper.php'; 216 require_once( $yii ); 217 218 Yii::createWebApplication( $configfile )->run(); |