/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/zii/widgets/CListView.php(217): CAssetManager->publish("/home/virtwww/w_nsk-ocean_97f12a1d/framework/zii/widgets/assets") 212 213 if(!isset($this->htmlOptions['class'])) 214 $this->htmlOptions['class']='list-view'; 215 216 if($this->baseScriptUrl===null) 217 $this->baseScriptUrl=Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('zii.widgets.assets')).'/listview'; 218 219 if($this->cssFile!==false) 220 { 221 if($this->cssFile===null) 222 $this->cssFile=$this->baseScriptUrl.'/styles.css'; |
#3 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CBaseController.php(147): CListView->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#4 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CBaseController.php(172): CBaseController->createWidget("zii.widgets.CListView", array("id" => "brand-list", "ajaxUpdate" => "viewOptions", "dataProvider" => CActiveDataProvider, "itemView" => "_list_view", ...)) 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 |
#5 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/http/themes/default/views/brand/index.php(16): CBaseController->widget("zii.widgets.CListView", array("id" => "brand-list", "ajaxUpdate" => "viewOptions", "dataProvider" => CActiveDataProvider, "itemView" => "_list_view", ...)) 11 'emptyText' => '', 12 //'sortableAttributes' => ['subject', 'price', 'articul', 'brand', 'in_stock'], 13 'template' => "{items}{pager}", 14 'pagerCssClass' => 'pagination-block', 15 'pager' => Yii::app()->params['pagination'], 16 ]); 17 ?> 18 </div> |
#6 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CBaseController.php(126): require("/home/virtwww/w_nsk-ocean_97f12a1d/http/themes/default/views/bra...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#7 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/virtwww/w_nsk-ocean_97f12a1d/http/themes/default/views/bra...", array("model" => Page, "brands" => CActiveDataProvider), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#8 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(869): CBaseController->renderFile("/home/virtwww/w_nsk-ocean_97f12a1d/http/themes/default/views/bra...", array("model" => Page, "brands" => CActiveDataProvider), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#9 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(782): CController->renderPartial("index", array("model" => Page, "brands" => CActiveDataProvider), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#10 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/protected/controllers/BrandController.php(29): CController->render("index", array("model" => Page, "brands" => CActiveDataProvider)) 24 $this->model = $model; 25 26 $this->render('index', [ 27 'model' => $model, 28 'brands' => $brands, 29 ]); 30 } 31 32 public function actionElement($id) 33 { 34 $model = Brand::model()->find("status = 1 AND id = :id", [':id' => $id]); |
#11 |
unknown(0): BrandController->actionIndex("7")
|
#12 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(BrandController, array("7")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#13 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(BrandController, ReflectionMethod, array("page" => "8", "id" => "7", "route" => "/brendy/")) 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 } |
#14 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CController.php(308): CInlineAction->runWithParams(array("page" => "8", "id" => "7", "route" => "/brendy/")) 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; |
#15 |
+
–
/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(); |
#16 |
+
–
/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); |
#17 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#18 |
+
–
/home/virtwww/w_nsk-ocean_97f12a1d/framework/web/CWebApplication.php(141): CWebApplication->runController("brand/index") 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. |
#19 |
+
–
/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 /** |
#20 |
+
–
/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'); |