CException

Не определено свойство "News.title_".

/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         {

Stack Trace

#1
+
 /var/www/rusbrand.dev/site/protected/views/frontoffice/news/list.php(83): CActiveRecord->__get("title_")
78                                 <?= Yii::app()->dateFormatter->format('dd.MM yyyy', $news->public_date); ?>
79                             </span>
80                     </div>
81                     <div class="cbni-text">
82                         <a href="<?= Yii::app()->createUrl('/news/'.$news->id) ?>" class="cbni-title">
83                             <?= CHtml::encode($news->$title) ?>
84                         </a>
85                         <a href="<?= Yii::app()->createUrl('/news/') ?>/?t=<?= $news->news_type_id ?>" class="cbni-category">
86                                 <span>
87                                     <?= $news->newsType->$title ?>
88                                 </span>
#6
+
 /var/www/rusbrand.dev/site/protected/controllers/frontoffice/NewsController.php(63): CController->render("list", array("newsList" => CPagination))
58                 'pagination' => $pagination,
59 
60             )
61         );
62 
63         $this->render('list', array('newsList' => $this->dataProvider->pagination));
64     }
65 
66     public function actionView($id)
67     {
68         Yii::app()->
#13
+
 /var/www/rusbrand.dev/site/protected/components/WebAppWithShutdownHandler.php(200): CController->run("list")
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)));
2024-03-29 14:36:30 nginx/0.7.67 Yii Framework/1.1.12