/var/www/html/dev/scottbutton/framework/base/CApplication.php(293)
281 return $this->_runtimePath; 282 } 283 } 284 285 /** 286 * Sets the directory that stores runtime files. 287 * @param string $path the directory that stores runtime files. 288 * @throws CException if the directory does not exist or is not writable 289 */ 290 public function setRuntimePath($path) 291 { 292 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath)) 293 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.', 294 array('{path}'=>$path))); 295 $this->_runtimePath=$runtimePath; 296 } 297 298 /** 299 * Returns the root directory that holds all third-party extensions. 300 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'. 301 */ 302 public function getExtensionPath() 303 { 304 return Yii::getPathOfAlias('ext'); 305 }
#0 |
+
–
/var/www/html/dev/scottbutton/framework/base/CApplication.php(280): CApplication->setRuntimePath() 275 { 276 if($this->_runtimePath!==null) 277 return $this->_runtimePath; 278 else 279 { 280 $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime'); 281 return $this->_runtimePath; 282 } 283 } 284 285 /** |
#1 |
+
–
/var/www/html/dev/scottbutton/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/html/dev/scottbutton/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/html/dev/scottbutton/framework/base/CModule.php(394): CLogRouter->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#4 |
+
–
/var/www/html/dev/scottbutton/framework/base/CModule.php(530): CModule->getComponent() 525 * Loads static application components. 526 */ 527 protected function preloadComponents() 528 { 529 foreach($this->preload as $id) 530 $this->getComponent($id); 531 } 532 533 /** 534 * Preinitializes the module. 535 * This method is called at the beginning of the module constructor. |
#5 |
+
–
/var/www/html/dev/scottbutton/framework/base/CApplication.php(167): CModule->preloadComponents() 162 $this->initSystemHandlers(); 163 $this->registerCoreComponents(); 164 165 $this->configure($config); 166 $this->attachBehaviors($this->behaviors); 167 $this->preloadComponents(); 168 169 $this->init(); 170 } 171 172 |
#6 |
+
–
/var/www/html/dev/scottbutton/framework/YiiBase.php(125): CApplication->__construct() 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/html/dev/scottbutton/framework/YiiBase.php(98): YiiBase::createApplication() 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/html/dev/scottbutton/index.php(13): YiiBase::createWebApplication() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |