/mnt/wwwroot/388g/shebao.388g.com/protected/modules/mshebao/views/shebao/show_content_2.php(154)
142 <div class="mainbody" <?php echo ($flag!=1)?'style="border-bottom:none"':''?>> 143 <div class="hd"><strong>相关文章</strong></div> 144 <div class="bd"> 145 <ul class="plist clearfix"> 146 <?php 147 if($flag==1){ 148 $xgwzmodel = Post::model()->findAllBySql("select * from bage_post where status_is='N' and catalog_id=".$_v['id']); 149 }else if($flag==2){ 150 $xgwzmodel = Post::model()->findAllBySql("select * from bage_post where status_is='N' and title like '%".$_v['catalog_name']."%' order by create_time limit 0,8"); 151 } 152 153 $i=0; 154 foreach ($xgwzmodel as $xg){ 155 $pat = '/\/uploads(.*?)"/is'; 156 preg_match_all($pat, $xg['content'], $mm); 157 echo ($i==0)?'<li class="first">':'<li>'; 158 echo '<a href="'.Post::model()->getmUrl($xg['id']).'"><img src="'. $mm[0][0].'" alt=""/><p>'.$xg['title'].'</p> 159 </a>'; 160 echo '</li>'; 161 ++$i; 162 if($i==4) break; 163 }?> 164 </ul> 165 <ul class="tlist clearfix" style="margin-top: 5px"> 166 <?php
#0 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(3419): require("/mnt/wwwroot/388g/shebao.388g.com/protected/modules/mshebao/view...") 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 } |
#1 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(3398): CBaseController->renderInternal("/mnt/wwwroot/388g/shebao.388g.com/protected/modules/mshebao/view...", array("_v" => Catalog, "lanmu" => "sbj", "sheng" => "yunnan", "shi" => ""), 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); |
#2 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(3822): CBaseController->renderFile("/mnt/wwwroot/388g/shebao.388g.com/protected/modules/mshebao/view...", array("_v" => Catalog, "lanmu" => "sbj", "sheng" => "yunnan", "shi" => ""), 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 |
#3 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(3790): CController->renderPartial("show_content_2", array("_v" => Catalog, "lanmu" => "sbj", "sheng" => "yunnan", "shi" => ""), 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) |
#4 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/protected/modules/mshebao/controllers/ShebaoController.php(102): CController->render("show_content_2", array("_v" => Catalog, "lanmu" => "sbj", "sheng" => "yunnan", "shi" => "")) 097 $this->render('show_content_2', [ 098 '_v' => $catalogArr, 099 'lanmu' => $lanmu, 100 'sheng' => $sheng, 101 'shi' => $shi, 102 ]); 103 } 104 else if ($lanmu == 'bangzhu') 105 { 106 $this->render('list_bangzhu', [ 107 '_v' => $catalogArr, |
#5 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(4058): ShebaoController->actionIndex() 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 4062 { 4063 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#6 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(3570): CInlineAction->runWithParams(array("lanmu" => "sbj", "sheng" => "yunnan")) 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; |
#7 |
+
–
/mnt/wwwroot/388g/shebao.388g.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(); |
#8 |
+
–
/mnt/wwwroot/388g/shebao.388g.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); |
#9 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(1746): CController->run("index") 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))); |
#10 |
+
–
/mnt/wwwroot/388g/shebao.388g.com/framework/yiilite.php(1666): CWebApplication->runController("mshebao/shebao/index") 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( |
#11 |
+
–
/mnt/wwwroot/388g/shebao.388g.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 { |
#12 |
+
–
/mnt/wwwroot/388g/shebao.388g.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(); |