/home/acdc/public_html/framework/base/CApplication.php(267)
255 return $this->_runtimePath; 256 } 257 } 258 259 /** 260 * Sets the directory that stores runtime files. 261 * @param string $path the directory that stores runtime files. 262 * @throws CException if the directory does not exist or is not writable 263 */ 264 public function setRuntimePath($path) 265 { 266 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath)) 267 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.', 268 array('{path}'=>$path))); 269 $this->_runtimePath=$runtimePath; 270 } 271 272 /** 273 * Returns the root directory that holds all third-party extensions. 274 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'. 275 */ 276 public function getExtensionPath() 277 { 278 return Yii::getPathOfAlias('ext'); 279 }
#0 |
+
–
/home/acdc/public_html/framework/base/CApplication.php(254): CApplication->setRuntimePath("/home/acdc/public_html/protected/runtime") 249 { 250 if($this->_runtimePath!==null) 251 return $this->_runtimePath; 252 else 253 { 254 $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime'); 255 return $this->_runtimePath; 256 } 257 } 258 259 /** |
#1 |
+
–
/home/acdc/public_html/framework/logging/CFileLogRoute.php(55): CApplication->getRuntimePath() 50 */ 51 public function init() 52 { 53 parent::init(); 54 if($this->getLogPath()===null) 55 $this->setLogPath(Yii::app()->getRuntimePath()); 56 } 57 58 /** 59 * @return string directory storing log files. Defaults to application runtime path. 60 */ |
#2 |
+
–
/home/acdc/public_html/framework/logging/CLogRouter.php(65): CFileLogRoute->init() 60 { 61 parent::init(); 62 foreach($this->_routes as $name=>$route) 63 { 64 $route=Yii::createComponent($route); 65 $route->init(); 66 $this->_routes[$name]=$route; 67 } 68 Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs')); 69 Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs')); 70 } |
#3 |
+
–
/home/acdc/public_html/framework/base/CModule.php(372): CLogRouter->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#4 |
+
–
/home/acdc/public_html/framework/base/CModule.php(477): CModule->getComponent("log") 472 * Loads static application components. 473 */ 474 protected function preloadComponents() 475 { 476 foreach($this->preload as $id) 477 $this->getComponent($id); 478 } 479 480 /** 481 * Preinitializes the module. 482 * This method is called at the beginning of the module constructor. |
#5 |
+
–
/home/acdc/public_html/framework/base/CApplication.php(142): CModule->preloadComponents() 137 $this->initSystemHandlers(); 138 $this->registerCoreComponents(); 139 140 $this->configure($config); 141 $this->attachBehaviors($this->behaviors); 142 $this->preloadComponents(); 143 144 $this->init(); 145 } 146 147 |
#6 |
+
–
/home/acdc/public_html/framework/YiiBase.php(128): CApplication->__construct("/home/acdc/public_html/protected/config/main.php") 123 * @return mixed the application instance 124 * @since 1.0.10 125 */ 126 public static function createApplication($class,$config=null) 127 { 128 return new $class($config); 129 } 130 131 /** 132 * Returns the application singleton, null if the singleton has not been created yet. 133 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#7 |
+
–
/home/acdc/public_html/framework/YiiBase.php(100): YiiBase::createApplication("CWebApplication", "/home/acdc/public_html/protected/config/main.php") 095 * If not, the directory will be defaulted to 'protected'. 096 * @return CWebApplication 097 */ 098 public static function createWebApplication($config=null) 099 { 100 return self::createApplication('CWebApplication',$config); 101 } 102 103 /** 104 * Creates a console application instance. 105 * @param mixed $config application configuration. |
#8 |
+
–
/home/acdc/public_html/index.php(18): YiiBase::createWebApplication("/home/acdc/public_html/protected/config/main.php") 13 defined('YII_DEBUG') or define('YII_DEBUG',true); 14 // specify how many levels of call stack should be shown in each log message 15 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 16 17 require_once($yii); 18 Yii::createWebApplication($config)->run(); |