/home/site/aite/protected/controllers/ProductController.php(143)
131 { 132 if(!empty($thumb_image['doc_url']) && $k==0) 133 { 134 $firstImg = Yii::app()->qiniu->domain.'/'.substr($thumb_image['doc_url'],4); 135 } 136 } 137 } 138 139 $main_image = empty($main_image) ? '' : $main_image; 140 141 //分类信息 142 $categorys = $this->productsCatMap(); 143 $son_cat = $categorys[$product['cat_id']]; 144 $parent_cat = $categorys[$son_cat['parentid']]; 145 // print_r($main_image); 146 // var_dump($thumb_images);exit; 147 // if(empty($firstImg)) 148 // { 149 // $firstImg = '/style/aite/Src/img/demo.jpg'; 150 // } 151 $this->render('detail',array( 152 'product' => $product, 153 'parent_cat' => $parent_cat, 154 'son_cat' => $son_cat, 155 'main_image' => $main_image,
#0 |
unknown(0): ProductController->actionDetail("50")
|
#1 |
+
–
/home/site/aite/framework/yiilite.php(4039): ReflectionMethod->invokeArgs(ProductController, array("50")) 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 { |
#2 |
+
–
/home/site/aite/framework/yiilite.php(4056): CAction->runWithParamsInternal(ProductController, ReflectionMethod, array("product_id" => "50")) 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 |
#3 |
+
–
/home/site/aite/framework/yiilite.php(3570): CInlineAction->runWithParams(array("product_id" => "50")) 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; |
#4 |
+
–
/home/site/aite/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(); |
#5 |
+
–
/home/site/aite/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); |
#6 |
+
–
/home/site/aite/framework/yiilite.php(1746): CController->run("detail") 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))); |
#7 |
+
–
/home/site/aite/framework/yiilite.php(1666): CWebApplication->runController("product/detail") 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( |
#8 |
+
–
/home/site/aite/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 { |
#9 |
+
–
/home/site/aite/index.php(49): CApplication->run() 44 $app = Yii::createWebApplication($config); 45 if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') === false) { 46 $app->attachBehavior('WebBehavior', 'application.behavior.WebBehavior'); 47 } 48 49 $app->run(); |