/home/virtwww/w_nsk-ocean_97f12a1d/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CAssetManager.php(123): CAssetManager->setBasePath("/home/virtwww/w_nsk-ocean_97f12a1d/http/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CClientScript.php(510): CAssetManager->publish("/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/js/source") 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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(351): CClientScript->render("<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8...") 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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(788): CController->processOutput("<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8...") 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 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/protected/controllers/BrandController.php(41): CController->render("element", array("model" => Brand)) 36 throw new CHttpException(404); 37 } 38 39 $this->model = $model; 40 41 $this->render('element', ['model' => $model]); 42 } 43 44 } 45 |
#9 |
unknown(0): BrandController->actionElement("88")
|
#10 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(BrandController, array("88")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#11 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(BrandController, ReflectionMethod, array("id" => "88", "route" => "/brendy/Moschino/")) 42 { 43 $methodName='action'.$this->getId(); 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 } |
#12 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "88", "route" => "/brendy/Moschino/")) 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; |
#13 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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(); |
#14 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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); |
#15 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CWebApplication.php(282): CController->run("element") 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))); |
#16 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CWebApplication.php(141): CWebApplication->runController("brand/element") 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. |
#17 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/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 /** |
#18 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/http/index.php(26): CApplication->run() 21 } 22 23 } 24 25 $config = dirname(__FILE__) . '/../protected/config/main.php'; 26 $app = Yii::createWebApplication($config)->run(); 27 28 /* 29 ini_set('display_errors', 0); 30 ini_set('error_reporting', -1); 31 require_once(dirname(__FILE__) . '/../vendor/autoload.php'); |