/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/base/CApplication.php(271)
259 return $this->_runtimePath; 260 } 261 } 262 263 /** 264 * Sets the directory that stores runtime files. 265 * @param string $path the directory that stores runtime files. 266 * @throws CException if the directory does not exist or is not writable 267 */ 268 public function setRuntimePath($path) 269 { 270 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath)) 271 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.', 272 array('{path}'=>$path))); 273 $this->_runtimePath=$runtimePath; 274 } 275 276 /** 277 * Returns the root directory that holds all third-party extensions. 278 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'. 279 */ 280 public function getExtensionPath() 281 { 282 return Yii::getPathOfAlias('ext'); 283 }
#0 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/base/CApplication.php(258): CApplication->setRuntimePath() 253 { 254 if($this->_runtimePath!==null) 255 return $this->_runtimePath; 256 else 257 { 258 $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime'); 259 return $this->_runtimePath; 260 } 261 } 262 263 /** |
#1 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/logging/CFileLogRoute.php(60): CApplication->getRuntimePath() 55 */ 56 public function init() 57 { 58 parent::init(); 59 if($this->getLogPath()===null) 60 $this->setLogPath(Yii::app()->getRuntimePath()); 61 } 62 63 /** 64 * @return string directory storing log files. Defaults to application runtime path. 65 */ |
#2 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/logging/CLogRouter.php(67): CFileLogRoute->init() 62 { 63 parent::init(); 64 foreach($this->_routes as $name=>$route) 65 { 66 $route=Yii::createComponent($route); 67 $route->init(); 68 $this->_routes[$name]=$route; 69 } 70 Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs')); 71 Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs')); 72 } |
#3 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/base/CModule.php(388): CLogRouter->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#4 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/base/CModule.php(493): CModule->getComponent() 488 * Loads static application components. 489 */ 490 protected function preloadComponents() 491 { 492 foreach($this->preload as $id) 493 $this->getComponent($id); 494 } 495 496 /** 497 * Preinitializes the module. 498 * This method is called at the beginning of the module constructor. |
#5 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/base/CApplication.php(146): CModule->preloadComponents() 141 $this->initSystemHandlers(); 142 $this->registerCoreComponents(); 143 144 $this->configure($config); 145 $this->attachBehaviors($this->behaviors); 146 $this->preloadComponents(); 147 148 $this->init(); 149 } 150 151 |
#6 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/YiiBase.php(127): CApplication->__construct() 122 * to the constructor of the application class. 123 * @return mixed the application instance 124 */ 125 public static function createApplication($class,$config=null) 126 { 127 return new $class($config); 128 } 129 130 /** 131 * Returns the application singleton, null if the singleton has not been created yet. 132 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#7 |
+
–
/home/pcmagic/domains/monitoring.pcmagic.pl/public_html/yii/YiiBase.php(100): YiiBase::createApplication() 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/pcmagic/domains/monitoring.pcmagic.pl/public_html/run/index.php(12): YiiBase::createWebApplication() 07 defined('YII_DEBUG') or define('YII_DEBUG',true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 error_reporting(E_ERROR | E_WARNING | E_PARSE); 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); |