/var/www/web/digitalshool/protected/framework/base/CApplication.php(289)
277 return $this->_runtimePath; 278 } 279 } 280 281 /** 282 * Sets the directory that stores runtime files. 283 * @param string $path the directory that stores runtime files. 284 * @throws CException if the directory does not exist or is not writable 285 */ 286 public function setRuntimePath($path) 287 { 288 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath)) 289 throw new CException(Yii::t('yii','Application runtime path "{path}" is not valid. Please make sure it is a directory writable by the Web server process.', 290 array('{path}'=>$path))); 291 $this->_runtimePath=$runtimePath; 292 } 293 294 /** 295 * Returns the root directory that holds all third-party extensions. 296 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'. 297 */ 298 public function getExtensionPath() 299 { 300 return Yii::getPathOfAlias('ext'); 301 }
#0 |
+
–
/var/www/web/digitalshool/protected/framework/base/CApplication.php(276): CApplication->setRuntimePath("/var/www/web/digitalshool/protected/runtime") 271 { 272 if($this->_runtimePath!==null) 273 return $this->_runtimePath; 274 else 275 { 276 $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime'); 277 return $this->_runtimePath; 278 } 279 } 280 281 /** |
#1 |
+
–
/var/www/web/digitalshool/protected/framework/logging/CFileLogRoute.php(67): CApplication->getRuntimePath() 62 */ 63 public function init() 64 { 65 parent::init(); 66 if($this->getLogPath()===null) 67 $this->setLogPath(Yii::app()->getRuntimePath()); 68 } 69 70 /** 71 * @return string directory storing log files. Defaults to application runtime path. 72 */ |
#2 |
+
–
/var/www/web/digitalshool/protected/framework/logging/CLogRouter.php(66): CFileLogRoute->init() 61 { 62 parent::init(); 63 foreach($this->_routes as $name=>$route) 64 { 65 $route=Yii::createComponent($route); 66 $route->init(); 67 $this->_routes[$name]=$route; 68 } 69 Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs')); 70 Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs')); 71 } |
#3 |
+
–
/var/www/web/digitalshool/protected/framework/base/CModule.php(387): CLogRouter->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#4 |
+
–
/var/www/web/digitalshool/protected/framework/base/CModule.php(523): CModule->getComponent("log") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#5 |
+
–
/var/www/web/digitalshool/protected/framework/base/CApplication.php(163): CModule->preloadComponents() 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 168 |
#6 |
+
–
/var/www/web/digitalshool/protected/framework/YiiBase.php(125): CApplication->__construct(array("name" => "Digital Web Application", "preload" => array("log"), "import" => array("application.models.*", "application.components.*", "application.extensions.*", "application.modules.user.*", ...), "modules" => array(0 => "UserCenter", "gii" => array("class" => "system.gii.GiiModule", "password" => "digital", "ipFilters" => array("127.0.0.1", "::1"))), ...)) 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. |
#7 |
+
–
/var/www/web/digitalshool/protected/framework/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/var/www/web/digitalshool/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. |
#8 |
+
–
/var/www/web/digitalshool/index.php(17): YiiBase::createWebApplication("/var/www/web/digitalshool/protected/config/main.php") 12 // specify how many levels of call stack should be shown in each log message 13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 14 require_once(dirname(__FILE__).'/protected/config/common_functions.php'); // 公共配置文件 15 require_once($yii); 16 17 Yii::createWebApplication($config)->run(); |