CException

Property "Projects.text_en" is not defined.

/wwwroot/public_html/newultra/ultra/framework/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
+
 /wwwroot/public_html/newultra/ultra/frontend/protected/views/site/projectsmore.php(41): CActiveRecord->__get("text_en")
36                     <div class="wysiwyg">       <!-- h1-den ashigaya kechdi -->
37                 <?php //if( count( $model->imgFile(array('condition'=>'active = 1')) ) > 0 ): ?>
38                     <!-- <img src="<?php //Yii::app()->createUrl('img/main/'.$model->imgFile->id)?>" alt="" class="pic pic-left"/> -->
39                 <?php //endif; ?>
40                 <!-- </div> bu div ashagida baglandi -->
41             <?=$model->{'text_'.Yii::app()->language}?>
42             </div>
43             <br/><br/>
44               <!-- facebook inpage yeni -->
45               <?php if($return=='news' || $return=='events'):?>
46                  <div class="links clearfix pull-right  fb_in" >
#6
+
 /wwwroot/public_html/newultra/ultra/frontend/protected/controllers/SiteController.php(332): CController->render("projectsmore", array("model" => Projects, "return" => "article"))
327         $model = Projects::model()->findByPk((int)$id, array('condition'=>'active = 1 and type = 4'));
328         if( count($model) <= 0 ){
329             throw new CHttpException(404,'The requested page does not exist.');
330         }
331         
332         $this->render('projectsmore', array('model'=>$model, 'return'=>'article'));
333     }
334     
335     public function actionProducts()
336     {
337         $model = new CActiveDataProvider('Products', array(
#16
+
 /wwwroot/public_html/newultra/www/front/index.php(35): CApplication->run()
30 /** url defines */
31 
32 define('DEFAULTURL', '/menus/index', true);
33 
34 require_once($yii);
35 Yii::createWebApplication($config)->run();
2024-03-28 17:41:50 Apache/2.2.15 (CentOS) Yii Framework/1.1.13