/var/www/ground18.ru/data/www/ground18.ru/framework/web/CAssetManager.php(138)
126 } 127 128 /** 129 * Sets the root directory storing published asset files. 130 * @param string $value the root directory storing published asset files 131 * @throws CException if the base path is invalid 132 */ 133 public function setBasePath($value) 134 { 135 if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath)) 136 $this->_basePath=$basePath; 137 else 138 throw new CException(Yii::t('yii','CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.', 139 array('{path}'=>$value))); 140 } 141 142 /** 143 * @return string the base url that the published asset files can be accessed. 144 * Note, the ending slashes are stripped off. Defaults to '/AppBaseUrl/assets'. 145 */ 146 public function getBaseUrl() 147 { 148 if($this->_baseUrl===null) 149 { 150 $request=Yii::app()->getRequest();
| #0 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CAssetManager.php(123): CAssetManager->setBasePath("/var/www/ground18.ru/data/www/ground18.ru/assets") 118 public function getBasePath() 119 { 120 if($this->_basePath===null) 121 { 122 $request=Yii::app()->getRequest(); 123 $this->setBasePath(dirname($request->getScriptFile()).DIRECTORY_SEPARATOR.self::DEFAULT_BASEPATH); 124 } 125 return $this->_basePath; 126 } 127 128 /** |
| #1 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CAssetManager.php(217): CAssetManager->getBasePath() 212 if(isset($this->_published[$path])) 213 return $this->_published[$path]; 214 elseif(($src=realpath($path))!==false) 215 { 216 $dir=$this->generatePath($src,$hashByName); 217 $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir; 218 if(is_file($src)) 219 { 220 $fileName=basename($src); 221 $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName; 222 |
| #2 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CClientScript.php(510): CAssetManager->publish("/var/www/ground18.ru/data/www/ground18.ru/framework/web/js/sourc...") 505 public function getCoreScriptUrl() 506 { 507 if($this->_baseUrl!==null) 508 return $this->_baseUrl; 509 else 510 return $this->_baseUrl=Yii::app()->getAssetManager()->publish(YII_PATH.'/web/js/source'); 511 } 512 513 /** 514 * Sets the base URL of all core javascript files. 515 * This setter is provided in case when core javascript files are manually published |
| #3 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CClientScript.php(547): CClientScript->getCoreScriptUrl() 542 $baseUrl=rtrim($baseUrl,'/'); 543 } 544 elseif(isset($package['basePath'])) 545 $baseUrl=Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias($package['basePath'])); 546 else 547 $baseUrl=$this->getCoreScriptUrl(); 548 549 return $this->coreScripts[$name]['baseUrl']=$baseUrl; 550 } 551 552 /** |
| #4 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CClientScript.php(348): CClientScript->getPackageBaseUrl("jquery") 343 return; 344 $cssFiles=array(); 345 $jsFiles=array(); 346 foreach($this->coreScripts as $name=>$package) 347 { 348 $baseUrl=$this->getPackageBaseUrl($name); 349 if(!empty($package['js'])) 350 { 351 foreach($package['js'] as $js) 352 $jsFiles[$baseUrl.'/'.$js]=$baseUrl.'/'.$js; 353 } |
| #5 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CClientScript.php(208): CClientScript->renderCoreScripts() 203 public function render(&$output) 204 { 205 if(!$this->hasScripts) 206 return; 207 208 $this->renderCoreScripts(); 209 210 if(!empty($this->scriptMap)) 211 $this->remapScripts(); 212 213 $this->unifyScripts(); |
| #6 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CController.php(351): CClientScript->render("<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Typ...") 346 * @param string $output the output generated by the current action 347 * @return string the output that has been processed. 348 */ 349 public function processOutput($output) 350 { 351 Yii::app()->getClientScript()->render($output); 352 353 // if using page caching, we should delay dynamic output replacement 354 if($this->_dynamicOutput!==null && $this->isCachingStackEmpty()) 355 { 356 $output=$this->processDynamicOutput($output); |
| #7 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CController.php(788): CController->processOutput(""<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Ty...") 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 788 $output=$this->processOutput($output); 789 790 if($return) 791 return $output; 792 else 793 echo $output; |
| #8 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/protected/controllers/SiteController.php(129): CController->render("contact", array("model" => ContactForm)) 124 mail(Yii::app()->params['adminEmail'],$subject,$body,$headers); 125 Yii::app()->user->setFlash('contact','Спасибо за обращение. Наши менеджеры свяжуться с Вами в ближайшее время!'); 126 $this->refresh(); 127 } 128 } 129 $this->render('contact',array('model'=>$model)); 130 } 131 132 public function actionPages($url){ 133 $model=Pages::model()->find('url=:url', array(':url'=>$url)); 134 $this->render('pages',array('model'=>$model)); |
| #9 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/actions/CInlineAction.php(49): SiteController->actionContact() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
| #10 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
| #11 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #12 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #13 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CWebApplication.php(282): CController->run("contact") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #14 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/web/CWebApplication.php(141): CWebApplication->runController("site/contact") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #15 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
| #16 |
+
–
/var/www/ground18.ru/data/www/ground18.ru/index.php(13): CApplication->run() 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(); |