/var/www/html/nittt-swayam/library/base/CApplication.php(294)
282 return $this->_runtimePath; 283 } 284 } 285 286 /** 287 * Sets the directory that stores runtime files. 288 * @param string $path the directory that stores runtime files. 289 * @throws CException if the directory does not exist or is not writable 290 */ 291 public function setRuntimePath($path) 292 { 293 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath)) 294 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.', 295 array('{path}'=>$path))); 296 $this->_runtimePath=$runtimePath; 297 } 298 299 /** 300 * Returns the root directory that holds all third-party extensions. 301 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'. 302 */ 303 public function getExtensionPath() 304 { 305 return Yii::getPathOfAlias('ext'); 306 }
#0 |
+
–
/var/www/html/nittt-swayam/library/base/CApplication.php(281): CApplication->setRuntimePath("/var/www/html/nittt-swayam/protected/runtime") 276 { 277 if($this->_runtimePath!==null) 278 return $this->_runtimePath; 279 else 280 { 281 $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime'); 282 return $this->_runtimePath; 283 } 284 } 285 286 /** |
#1 |
+
–
/var/www/html/nittt-swayam/library/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/nittt-swayam/library/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/nittt-swayam/library/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/nittt-swayam/library/base/CModule.php(530): CModule->getComponent("log") 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/nittt-swayam/library/base/CApplication.php(168): CModule->preloadComponents() 163 $this->initSystemHandlers(); 164 $this->registerCoreComponents(); 165 166 $this->configure($config); 167 $this->attachBehaviors($this->behaviors); 168 $this->preloadComponents(); 169 170 $this->init(); 171 } 172 173 |
#6 |
+
–
/var/www/html/nittt-swayam/library/YiiBase.php(125): CApplication->__construct("/var/www/html/nittt-swayam/protected/config/main.php") 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/nittt-swayam/library/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/var/www/html/nittt-swayam/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/html/nittt-swayam/index.php(17): YiiBase::createWebApplication("/var/www/html/nittt-swayam/protected/config/main.php") 12 13 // remove the following line when in production mode 14 defined('YII_DEBUG') or define('YII_DEBUG',true); 15 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |