CException

Не определено свойство "StructPage.time".

/var/www/vhosts/barber.kz/httpdocs/yii/db/ar/CActiveRecord.php(143)

131      */
132     public function __get($name)
133     {
134         if(isset($this->_attributes[$name]))
135             return $this->_attributes[$name];
136         elseif(isset($this->getMetaData()->columns[$name]))
137             return null;
138         elseif(isset($this->_related[$name]))
139             return $this->_related[$name];
140         elseif(isset($this->getMetaData()->relations[$name]))
141             return $this->getRelated($name);
142         else
143             return parent::__get($name);
144     }
145 
146     /**
147      * PHP setter magic method.
148      * This method is overridden so that AR attributes can be accessed like properties.
149      * @param string $name property name
150      * @param mixed $value property value
151      */
152     public function __set($name,$value)
153     {
154         if($this->setAttribute($name,$value)===false)
155         {

Stack Trace

#1
+
 /var/www/vhosts/barber.kz/httpdocs/barber.kz/protected/modules/struct/models/StructPage.php(552): CActiveRecord->__get("time")
547                 return isset($this->data[$name])
548                     ? $this->data[$name] : NULL;
549             }
550         }
551 
552         return parent::__get($name);
553     }
554 
555     public function getAttribute($name)
556     {
557         // если не сделать этого, произойдет ситуация, когда обращение
#2
+
 /var/www/vhosts/barber.kz/httpdocs/barber.kz/protected/views/templates/master/item.php(28): StructPage->__get("time")
23                     <b><?= yii::t('custom', 'Специализация'); ?></b>
24                     <p><?= $page->spec ?></p>
25                 </div>
26                 <div class="grey-block">
27                     <b><?= yii::t('custom', 'В профессии'); ?></b>
28                     <p><?= $page->time ?></p>
29                 </div>
30                 <div class="otherBlock">
31                     <?= $page->other ?>
32                 </div>
33             </div>
#3
+
 /var/www/vhosts/barber.kz/httpdocs/barber.kz/protected/views/page.php(64): include("/var/www/vhosts/barber.kz/httpdocs/barber.kz/protected/views/tem...")
59                             </div>
60                     <?php
61                     }
62                 }
63 // подгрузка шаблона
64 include Yii::app()->struct->getTemplatePath('page', $template);
2024-03-28 16:35:24 Apache Yii Framework/1.1.13