/mnt/wwwroot/95447/shebao.95447.com/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 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/web/CAssetManager.php(123): CAssetManager->setBasePath("/mnt/wwwroot/95447/shebao.95447.com/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 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/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 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(5260): CAssetManager->publish("/mnt/wwwroot/95447/shebao.95447.com/framework/web/widgets/pagers...", false) 5255 } 5256 return 'jQuery.ajax('.CJavaScript::encode($options).');'; 5257 } 5258 public static function asset($path,$hashByName=false) 5259 { 5260 return Yii::app()->getAssetManager()->publish($path,$hashByName); 5261 } 5262 public static function normalizeUrl($url) 5263 { 5264 if(is_array($url)) 5265 { |
#3 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/web/widgets/pagers/CLinkPager.php(226): CHtml::asset("/mnt/wwwroot/95447/shebao.95447.com/framework/web/widgets/pagers...") 221 * @param string $url the CSS URL. If null, a default CSS URL will be used. 222 */ 223 public static function registerCssFile($url=null) 224 { 225 if($url===null) 226 $url=CHtml::asset(Yii::getPathOfAlias('system.web.widgets.pagers.pager').'.css'); 227 Yii::app()->getClientScript()->registerCssFile($url); 228 } 229 } |
#4 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/web/widgets/pagers/CLinkPager.php(216): CLinkPager::registerCssFile(null) 211 * Registers the needed client scripts (mainly CSS file). 212 */ 213 public function registerClientScript() 214 { 215 if($this->cssFile!==false) 216 self::registerCssFile($this->cssFile); 217 } 218 219 /** 220 * Registers the needed CSS file. 221 * @param string $url the CSS URL. If null, a default CSS URL will be used. |
#5 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/web/widgets/pagers/CLinkPager.php(131): CLinkPager->registerClientScript() 126 * Executes the widget. 127 * This overrides the parent implementation by displaying the generated page buttons. 128 */ 129 public function run() 130 { 131 $this->registerClientScript(); 132 $buttons=$this->createPageButtons(); 133 if(empty($buttons)) 134 return; 135 echo $this->header; 136 echo CHtml::tag('ul',$this->htmlOptions,implode("\n",$buttons)); |
#6 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3444): CLinkPager->run() 3439 return ob_get_clean(); 3440 } 3441 else 3442 { 3443 $widget=$this->createWidget($className,$properties); 3444 $widget->run(); 3445 return $widget; 3446 } 3447 } 3448 public function beginWidget($className,$properties=array()) 3449 { |
#7 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/protected/views/shebao/list_bangzhu2.php(47): CBaseController->widget("CLinkPager", array("header" => "", "firstPageLabel" => "首页", "lastPageLabel" => "末页", "prevPageLabel" => "<<", ...)) 42 'lastPageLabel' => '末页', 43 'prevPageLabel' => '<<', 44 'nextPageLabel' => '>>', 45 'pages'=>$pagebar, 46 'maxButtonCount'=>8, 47 ));?> 48 </div> 49 </div> 50 51 <div class="sidebar"> 52 <dl> |
#8 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3419): require("/mnt/wwwroot/95447/shebao.95447.com/protected/views/shebao/list_...") 3414 $data=$_data_; 3415 if($_return_) 3416 { 3417 ob_start(); 3418 ob_implicit_flush(false); 3419 require($_viewFile_); 3420 return ob_get_clean(); 3421 } 3422 else 3423 require($_viewFile_); 3424 } |
#9 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3398): CBaseController->renderInternal("/mnt/wwwroot/95447/shebao.95447.com/protected/views/shebao/list_...", array("model" => Catalog, "dlm" => Catalog, "datalist" => array(Post, Post, Post, Post, ...), "pagebar" => CPagination, ...), true) 3393 { 3394 $widgetCount=count($this->_widgetStack); 3395 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3396 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3397 else 3398 $content=$this->renderInternal($viewFile,$data,$return); 3399 if(count($this->_widgetStack)===$widgetCount) 3400 return $content; 3401 else 3402 { 3403 $widget=end($this->_widgetStack); |
#10 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3822): CBaseController->renderFile("/mnt/wwwroot/95447/shebao.95447.com/protected/views/shebao/list_...", array("model" => Catalog, "dlm" => Catalog, "datalist" => array(Post, Post, Post, Post, ...), "pagebar" => CPagination, ...), true) 3817 } 3818 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3819 { 3820 if(($viewFile=$this->getViewFile($view))!==false) 3821 { 3822 $output=$this->renderFile($viewFile,$data,true); 3823 if($processOutput) 3824 $output=$this->processOutput($output); 3825 if($return) 3826 return $output; 3827 else |
#11 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3790): CController->renderPartial("list_bangzhu2", array("model" => Catalog, "dlm" => Catalog, "datalist" => array(Post, Post, Post, Post, ...), "pagebar" => CPagination, ...), true) 3785 } 3786 public function render($view,$data=null,$return=false) 3787 { 3788 if($this->beforeRender($view)) 3789 { 3790 $output=$this->renderPartial($view,$data,true); 3791 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3792 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3793 $this->afterRender($view,$output); 3794 $output=$this->processOutput($output); 3795 if($return) |
#12 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/protected/controllers/ShebaoController.php(169): CController->render("list_bangzhu2", array("model" => Catalog, "dlm" => Catalog, "datalist" => array(Post, Post, Post, Post, ...), "pagebar" => CPagination, ...)) 164 'datalist' => $datalist, 165 'pagebar' => $pages, 166 'hotlist' => $posthotmodel 167 ]; 168 169 $this->render('list_bangzhu2', $tplVar); 170 } 171 172 public function actionShowbangzhu($id) 173 { 174 $bagecmsShow = Post::model()->findByPk(intval($id)); |
#13 |
unknown(0): ShebaoController->actionBangzhu("7398")
|
#14 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(4039): ReflectionMethod->invokeArgs(ShebaoController, array("7398")) 4034 elseif($param->isDefaultValueAvailable()) 4035 $ps[]=$param->getDefaultValue(); 4036 else 4037 return false; 4038 } 4039 $method->invokeArgs($object,$ps); 4040 return true; 4041 } 4042 } 4043 class CInlineAction extends CAction 4044 { |
#15 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(4056): CAction->runWithParamsInternal(ShebaoController, ReflectionMethod, array("id" => "7398")) 4051 { 4052 $methodName='action'.$this->getId(); 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser |
#16 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3570): CInlineAction->runWithParams(array("id" => "7398")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#17 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3555): CController->runAction(CInlineAction) 3550 $this->missingAction($actionID); 3551 } 3552 public function runActionWithFilters($action,$filters) 3553 { 3554 if(empty($filters)) 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); |
#18 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array()) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#19 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(1746): CController->run("bangzhu") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(1666): CWebApplication->runController("shebao/bangzhu") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#21 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#22 |
+
–
/mnt/wwwroot/95447/shebao.95447.com/index.php(20): CApplication->run() 15 define('WWWPATH', str_replace(array('\\', '\\\\'), '/', dirname(__FILE__))); 16 $framework = dirname(__FILE__) . DS. 'framework'.DS.'yiilite.php'; 17 $config = WWWPATH . DS .'protected'.DS.'config'.DS.'main.php'; 18 defined('YII_DEBUG') or define('YII_DEBUG',true); 19 require_once ($framework); 20 Yii::createWebApplication($config)->run(); |