/home/almas/mehr/site/yii/web/CAssetManager.php(138)
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)
#0 |
+
–
/home/almas/mehr/site/yii/web/CAssetManager.php(123): CAssetManager->setBasePath("/home/almas/mehr/site/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/almas/mehr/site/yii/web/CAssetManager.php(217): CAssetManager->getBasePath() 212 if(isset($this->_published[$path])) 213 return $this->_published[$path]; 214 elseif(is_string($path) && ($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/almas/mehr/site/yii/web/helpers/CHtml.php(1400): CAssetManager->publish("/home/almas/mehr/site/yii/web/widgets/pagers/pager.css", false) 1395 * different extensions. 1396 * @return string the asset URL 1397 */ 1398 public static function asset($path,$hashByName=false) 1399 { 1400 return Yii::app()->getAssetManager()->publish($path,$hashByName); 1401 } 1402 1403 /** 1404 * Normalizes the input parameter to be a valid URL. 1405 * |
#3 |
+
–
/home/almas/mehr/site/yii/web/widgets/pagers/CLinkPager.php(236): CHtml::asset("/home/almas/mehr/site/yii/web/widgets/pagers/pager.css") 231 * @param string $url the CSS URL. If null, a default CSS URL will be used. 232 */ 233 public static function registerCssFile($url=null) 234 { 235 if($url===null) 236 $url=CHtml::asset(Yii::getPathOfAlias('system.web.widgets.pagers.pager').'.css'); 237 Yii::app()->getClientScript()->registerCssFile($url); 238 } 239 } |
#4 |
+
–
/home/almas/mehr/site/yii/web/widgets/pagers/CLinkPager.php(226): CLinkPager::registerCssFile(null) 221 * Registers the needed client scripts (mainly CSS file). 222 */ 223 public function registerClientScript() 224 { 225 if($this->cssFile!==false) 226 self::registerCssFile($this->cssFile); 227 } 228 229 /** 230 * Registers the needed CSS file. 231 * @param string $url the CSS URL. If null, a default CSS URL will be used. |
#5 |
+
–
/home/almas/mehr/site/yii/web/widgets/pagers/CLinkPager.php(135): CLinkPager->registerClientScript() 130 * Executes the widget. 131 * This overrides the parent implementation by displaying the generated page buttons. 132 */ 133 public function run() 134 { 135 $this->registerClientScript(); 136 $buttons=$this->createPageButtons(); 137 if(empty($buttons)) 138 return; 139 echo $this->header; 140 echo CHtml::tag('ul',$this->htmlOptions,implode("\n",$buttons)); |
#6 |
+
–
/home/almas/mehr/site/yii/web/CBaseController.php(182): CLinkPager->run() 177 return ob_get_clean(); 178 } 179 else 180 { 181 $widget=$this->createWidget($className,$properties); 182 $widget->run(); 183 return $widget; 184 } 185 } 186 187 /** |
#7 |
+
–
/home/almas/mehr/site/protected/views/contentGroup/view.php(18): CBaseController->widget("CLinkPager", array("pages" => CPagination)) 13 <?php 14 $this->renderPartial('partials/_contentsList', array('contents' => $contents, 'types' => $types)); 15 ?> 16 <div class="spacer20 clear"></div> 17 <?php 18 $this->widget('CLinkPager', array('pages' => $pages,)); 19 ?> |
#8 |
+
–
/home/almas/mehr/site/yii/web/CBaseController.php(126): require("/home/almas/mehr/site/protected/views/contentGroup/view.php") 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 } |
#9 |
+
–
/home/almas/mehr/site/yii/web/CBaseController.php(95): CBaseController->renderInternal("/home/almas/mehr/site/protected/views/contentGroup/view.php", array("contents" => array(stdClass), "pages" => CPagination, "types" => array(0 => "", 1 => "کتاب", 2 => "سخنرانی", 3 => "دوره آموزشی", ...)), 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); |
#10 |
+
–
/home/almas/mehr/site/yii/web/CController.php(872): CBaseController->renderFile("/home/almas/mehr/site/protected/views/contentGroup/view.php", array("contents" => array(stdClass), "pages" => CPagination, "types" => array(0 => "", 1 => "کتاب", 2 => "سخنرانی", 3 => "دوره آموزشی", ...)), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#11 |
+
–
/home/almas/mehr/site/yii/web/CController.php(785): CController->renderPartial("view", array("contents" => array(stdClass), "pages" => CPagination, "types" => array(0 => "", 1 => "کتاب", 2 => "سخنرانی", 3 => "دوره آموزشی", ...)), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
#12 |
+
–
/home/almas/mehr/site/protected/controllers/ContentGroupController.php(44): CController->render("view", array("contents" => array(stdClass), "pages" => CPagination, "types" => array(0 => "", 1 => "کتاب", 2 => "سخنرانی", 3 => "دوره آموزشی", ...))) 39 $pages = $this->getPagination($totalCount); 40 41 $this->render('view', array( 42 'contents' => $contents, 43 'pages' => $pages, 44 'types' => $types 45 )); 46 } 47 48 private function getContentsByGroupId($groupId, $page) 49 { |
#13 |
unknown(0): ContentGroupController->actionView("1497", null)
|
#14 |
+
–
/home/almas/mehr/site/yii/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(ContentGroupController, array("1497", null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#15 |
+
–
/home/almas/mehr/site/yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ContentGroupController, ReflectionMethod, array("id" => "1497", "title" => "فصلنامه-علمی-مطالعات-نوین-بانکی")) 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 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#16 |
+
–
/home/almas/mehr/site/yii/web/CController.php(308): CInlineAction->runWithParams(array("id" => "1497", "title" => "فصلنامه-علمی-مطالعات-نوین-بانکی")) 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; |
#17 |
+
–
/home/almas/mehr/site/yii/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#18 |
+
–
/home/almas/mehr/site/yii/web/widgets/COutputCache.php(165): CFilterChain->run() 160 * @return boolean whether the filtering process should stop after this filter. Defaults to false. 161 */ 162 public function filter($filterChain) 163 { 164 if(!$this->getIsContentCached()) 165 $filterChain->run(); 166 $this->run(); 167 } 168 169 /** 170 * Marks the start of content to be cached. |
#19 |
+
–
/home/almas/mehr/site/yii/web/filters/CFilterChain.php(131): COutputCache->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#20 |
+
–
/home/almas/mehr/site/yii/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#21 |
+
–
/home/almas/mehr/site/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "NOutputCache + view", "duration" => 0))) 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); |
#22 |
+
–
/home/almas/mehr/site/yii/web/CWebApplication.php(282): CController->run("view") 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))); |
#23 |
+
–
/home/almas/mehr/site/yii/web/CWebApplication.php(141): CWebApplication->runController("contentGroup/view") 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. |
#24 |
+
–
/home/almas/mehr/site/yii/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#25 |
+
–
/home/almas/mehr/site/index.php(14): CApplication->run() 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 10 11 require_once($yii); 12 13 //Yii::beginProfile('start'); 14 Yii::createWebApplication($config)->run(); 15 //Yii::endProfile('start'); |