/var/www/bazametrov/data/www/bazametrov.ru/protected/modules/apartments/controllers/MainController.php(49)
37 38 public function actionIndex(){ 39 throw new CHttpException(404,tc('The requested page does not exist.')); 40 } 41 42 public function actionView($id = 0, $url = '', $printable = 0,$pdf=0) { 43 //$this->showSearchForm = false; 44 $this->htmlPageId = 'viewlisting'; 45 $offer = Apartment::model()->with(array('objType', 'city'))->findByPk($id); 46 if(!$offer || ($offer->owner_active==0 && $offer->active==0 && !isset(Yii::app()->user->id )) || ($offer->owner_active==1 && $offer->active==0 && !isset(Yii::app()->user->id )) 47 || ($offer->owner_active==1 && $offer->active==2 && !isset(Yii::app()->user->id )) 48 ){//|| $offer->deleted==1 49 throw new CHttpException(404,tc('The requested page does not exist.')); 50 } 51 $apartment = NULL; 52 53 $seo = NULL; 54 if( ($id || $url)){ 55 $url = $url ? $url : $id; 56 57 $seo = SeoFriendlyUrl::getForView($url, $this->modelName); 58 if(empty($seo)){ 59 //$offer = Apartment::model()->with(array('windowTo', 'objType', 'city'))->findByPk($id); 60 $seo=new SeoFriendlyUrl(); 61 $seo->title_ru=$offer->title_ru;
#0 |
unknown(0): MainController->actionView("148270071", "", 0, 0)
|
#1 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4189): ReflectionMethod->invokeArgs(MainController, array("148270071", "", 0, 0)) 4184 elseif($param->isDefaultValueAvailable()) 4185 $ps[]=$param->getDefaultValue(); 4186 else 4187 return false; 4188 } 4189 $method->invokeArgs($object,$ps); 4190 return true; 4191 } 4192 } 4193 class CInlineAction extends CAction 4194 { |
#2 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4206): CAction->runWithParamsInternal(MainController, ReflectionMethod, array("lang" => "ru", "id" => "148270071")) 4201 { 4202 $methodName='action'.$this->getId(); 4203 $controller=$this->getController(); 4204 $method=new ReflectionMethod($controller, $methodName); 4205 if($method->getNumberOfParameters()>0) 4206 return $this->runWithParamsInternal($controller, $method, $params); 4207 $controller->$methodName(); 4208 return true; 4209 } 4210 } 4211 class CWebUser extends CApplicationComponent implements IWebUser |
#3 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3720): CInlineAction->runWithParams(array("lang" => "ru", "id" => "148270071")) 3715 { 3716 $priorAction=$this->_action; 3717 $this->_action=$action; 3718 if($this->beforeAction($action)) 3719 { 3720 if($action->runWithParams($this->getActionParams())===false) 3721 $this->invalidActionParams($action); 3722 else 3723 $this->afterAction($action); 3724 } 3725 $this->_action=$priorAction; |
#4 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7049): CController->runAction(CInlineAction) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } 7052 class CFilter extends CComponent implements IFilter 7053 { 7054 public function filter($filterChain) |
#5 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7058): CFilterChain->run() 7053 { 7054 public function filter($filterChain) 7055 { 7056 if($this->preFilter($filterChain)) 7057 { 7058 $filterChain->run(); 7059 $this->postFilter($filterChain); 7060 } 7061 } 7062 public function init() 7063 { |
#6 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7046): CFilter->filter(CFilterChain) 7041 public function run() 7042 { 7043 if($this->offsetExists($this->filterIndex)) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } |
#7 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7058): CFilterChain->run() 7053 { 7054 public function filter($filterChain) 7055 { 7056 if($this->preFilter($filterChain)) 7057 { 7058 $filterChain->run(); 7059 $this->postFilter($filterChain); 7060 } 7061 } 7062 public function init() 7063 { |
#8 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(4098): CFilter->filter(CFilterChain) 4093 } 4094 public function filterAccessControl($filterChain) 4095 { 4096 $filter=new CAccessControlFilter; 4097 $filter->setRules($this->accessRules()); 4098 $filter->filter($filterChain); 4099 } 4100 public function getPageState($name,$defaultValue=null) 4101 { 4102 if($this->_pageStates===null) 4103 $this->_pageStates=$this->loadPageStates(); |
#9 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7091): CController->filterAccessControl(CFilterChain) 7086 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 7087 } 7088 public function filter($filterChain) 7089 { 7090 $method='filter'.$this->name; 7091 $filterChain->controller->$method($filterChain); 7092 } 7093 } 7094 class CAccessControlFilter extends CFilter 7095 { 7096 public $message; |
#10 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(7046): CInlineFilter->filter(CFilterChain) 7041 public function run() 7042 { 7043 if($this->offsetExists($this->filterIndex)) 7044 { 7045 $filter=$this->itemAt($this->filterIndex++); 7046 $filter->filter($this); 7047 } 7048 else 7049 $this->controller->runAction($this->action); 7050 } 7051 } |
#11 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3710): CFilterChain->run() 3705 $this->runAction($action); 3706 else 3707 { 3708 $priorAction=$this->_action; 3709 $this->_action=$action; 3710 CFilterChain::create($this,$action,$filters)->run(); 3711 $this->_action=$priorAction; 3712 } 3713 } 3714 public function runAction($action) 3715 { |
#12 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(3695): CController->runActionWithFilters(CInlineAction, array("accessControl", array("ESetReturnUrlFilter + index, view, create, update, bookingform, ..."))) 3690 { 3691 if(($parent=$this->getModule())===null) 3692 $parent=Yii::app(); 3693 if($parent->beforeControllerAction($this,$action)) 3694 { 3695 $this->runActionWithFilters($action,$this->filters()); 3696 $parent->afterControllerAction($this,$action); 3697 } 3698 } 3699 else 3700 $this->missingAction($actionID); |
#13 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1799): CController->run("view") 1794 { 1795 list($controller,$actionID)=$ca; 1796 $oldController=$this->_controller; 1797 $this->_controller=$controller; 1798 $controller->init(); 1799 $controller->run($actionID); 1800 $this->_controller=$oldController; 1801 } 1802 else 1803 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1804 array('{route}'=>$route===''?$this->defaultController:$route))); |
#14 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1719): CWebApplication->runController("apartments/main/view") 1714 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1715 $_GET[$name]=$value; 1716 } 1717 else 1718 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1719 $this->runController($route); 1720 } 1721 protected function registerCoreComponents() 1722 { 1723 parent::registerCoreComponents(); 1724 $components=array( |
#15 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#16 |
+
–
/var/www/bazametrov/data/www/bazametrov.ru/index.php(166): CApplication->run() 161 return $md->isMobile(); 162 } 163 164 require_once($yii); 165 166 Yii::createWebApplication($config)->run(); |