/var/www/rusbrand.dev/yii/framework/db/ar/CActiveRecord.php(144)
132 */ 133 public function __get($name) 134 { 135 if(isset($this->_attributes[$name])) 136 return $this->_attributes[$name]; 137 else if(isset($this->getMetaData()->columns[$name])) 138 return null; 139 else if(isset($this->_related[$name])) 140 return $this->_related[$name]; 141 else if(isset($this->getMetaData()->relations[$name])) 142 return $this->getRelated($name); 143 else 144 return parent::__get($name); 145 } 146 147 /** 148 * PHP setter magic method. 149 * This method is overridden so that AR attributes can be accessed like properties. 150 * @param string $name property name 151 * @param mixed $value property value 152 */ 153 public function __set($name,$value) 154 { 155 if($this->setAttribute($name,$value)===false) 156 {
#0 |
+
–
/var/www/rusbrand.dev/yii/framework/db/ar/CActiveRecord.php(144): CComponent->__get("name_") 139 else if(isset($this->_related[$name])) 140 return $this->_related[$name]; 141 else if(isset($this->getMetaData()->relations[$name])) 142 return $this->getRelated($name); 143 else 144 return parent::__get($name); 145 } 146 147 /** 148 * PHP setter magic method. 149 * This method is overridden so that AR attributes can be accessed like properties. |
#1 |
+
–
/var/www/rusbrand.dev/site/protected/views/frontoffice/contact/view.php(60): CActiveRecord->__get("name_") 55 <?php 56 foreach ($contactPerson as $k => $value) { 57 ?> 58 <li> 59 <p class="dir-name"> 60 <?= $value->$name ?> 61 </p> 62 <p class="dir-post"> 63 <?= $value->$title ?> 64 </p> 65 </li> |
#2 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CBaseController.php(127): require("/var/www/rusbrand.dev/site/protected/views/frontoffice/contact/v...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#3 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/rusbrand.dev/site/protected/views/frontoffice/contact/v...", array("contact" => Contact, "contactPerson" => array(ContactPerson, ContactPerson, ContactPerson, ContactPerson, ...)), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#4 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/rusbrand.dev/site/protected/views/frontoffice/contact/v...", array("contact" => Contact, "contactPerson" => array(ContactPerson, ContactPerson, ContactPerson, ContactPerson, ...)), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#5 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CController.php(783): CController->renderPartial("view", array("contact" => Contact, "contactPerson" => array(ContactPerson, ContactPerson, ContactPerson, ContactPerson, ...)), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
#6 |
+
–
/var/www/rusbrand.dev/site/protected/controllers/frontoffice/ContactController.php(17): CController->render("view", array("contact" => Contact, "contactPerson" => array(ContactPerson, ContactPerson, ContactPerson, ContactPerson, ...))) 12 13 public function actionView() 14 { 15 $contact = Contact::model()->findByPk(1); 16 $contactPerson = ContactPerson::model()->findAll(); 17 $this->render('view', array('contact' => $contact, 'contactPerson' => $contactPerson)); 18 } 19 20 public function getMetaTitle() 21 { 22 $seo = Seo::model()->findByPk(7); |
#7 |
+
–
/var/www/rusbrand.dev/yii/framework/web/actions/CInlineAction.php(50): ContactController->actionView() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#8 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("q" => "/contact/view")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#9 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#10 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#11 |
+
–
/var/www/rusbrand.dev/site/protected/components/WebAppWithShutdownHandler.php(200): CController->run("view") 195 true 196 ); 197 exit(0); // ...-три-четыре. ЗАКОНЧИЛИ! Переходим к водным процедурам 198 } else { 199 // всё нормально пущай сам работает 200 $controller->run($actionID); 201 $this->setController($oldController); 202 } 203 } else { 204 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 205 array('{route}'=>$route===''?$this->defaultController:$route))); |
#12 |
+
–
/var/www/rusbrand.dev/yii/framework/web/CWebApplication.php(145): WebAppWithShutdownHandler->runController("contact/view") 140 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 141 $_GET[$name]=$value; 142 } 143 else 144 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 145 $this->runController($route); 146 } 147 148 /** 149 * Registers the core application components. 150 * This method overrides the parent implementation by registering additional core components. |
#13 |
+
–
/var/www/rusbrand.dev/yii/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#14 |
+
–
/var/www/rusbrand.dev/site/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run() 18 19 // обрабатываем событие создания модуля 20 $this->onModuleCreate = array($this, 'changeModulePaths'); 21 $this->onModuleCreate(new CEvent ($this->owner)); 22 23 $this->owner->run(); 24 } 25 26 // обработчик события onModuleCreate 27 public function onModuleCreate($event) 28 { |
#15 |
unknown(0): WebApplicationEndBehavior->runEnd("frontoffice")
|
#16 |
+
–
/var/www/rusbrand.dev/yii/framework/base/CComponent.php(261): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("frontoffice")) 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#17 |
+
–
/var/www/rusbrand.dev/site/index.php(16): CComponent->__call("runEnd", array("frontoffice")) 11 //Yii::createWebApplication($config)->runEnd('frontoffice'); 12 13 // То же самое, но с обработчиком E_ERROR 14 require_once dirname(__FILE__).'/protected/components/WebAppWithShutdownHandler.php'; 15 16 Yii::createApplication('WebAppWithShutdownHandler', $config)->runEnd('frontoffice'); |
#18 |
+
–
/var/www/rusbrand.dev/site/index.php(16): WebAppWithShutdownHandler->runEnd("frontoffice") 11 //Yii::createWebApplication($config)->runEnd('frontoffice'); 12 13 // То же самое, но с обработчиком E_ERROR 14 require_once dirname(__FILE__).'/protected/components/WebAppWithShutdownHandler.php'; 15 16 Yii::createApplication('WebAppWithShutdownHandler', $config)->runEnd('frontoffice'); |