CException

Не определено свойство "Cooperation.Array".

/home/d/dionis7/dionyssos.ru/public_html/framework/db/ar/CActiveRecord.php(145)

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

Stack Trace

#1
+
 /home/d/dionis7/dionyssos.ru/public_html/protected/views/cooperation/index.php(21): CActiveRecord->__get("Array")
16 <div class="gridContainer clearfix">
17     <div id="div1" class="fluid">
18         <div id="cooperation_data" style="width:100%;">
19             <?php 
20                 $content = Cooperation::getCooperationFieldByType();
21                 echo $data->$content[$type]; 
22             ?>
23         </div>
24     </div>
25 </div>
#6
+
 /home/d/dionis7/dionyssos.ru/public_html/protected/controllers/CooperationController.php(22): CController->render("index", array("data" => Cooperation, "type" => 1))
17         $data = $cooperation->getCooperationData($type);
18         
19         //Render of view
20         $this->render('index', array(
21             'data'=>$data,
22             'type'=>$type
23         ));
24     }
25     
26     /**
27     * This action show cooperation content
#14
+
 /home/d/dionis7/dionyssos.ru/public_html/index.php(27): CApplication->run()
22 {
23         // releasing output buffer 
24         return ob_end_flush();
25 }; 
26 
27 Yii::createWebApplication($config)->run();
2024-03-29 02:39:01 Apache/2.4.29 Yii Framework/1.1.15