CException

Property "Category.title" is not defined.

/home/pwj2d7hixaun/public_html/theprintshub.com/yii/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

#2
+
 /home/pwj2d7hixaun/public_html/theprintshub.com/protected/views/site/product.php(115): CModel->offsetGet()
110 
111         <div class="row">
112         
113         <div class="header-for-light">
114 
115             <h1 class="wow fadeInRight animated animated" data-wow-duration="1s" style="visibility: visible;-webkit-animation-duration: 1s; -moz-animation-duration: 1s; animation-duration: 1s;"><?php echo $category['title'];?></h1>
116             
117             <p><?php echo $category['description'];?></p>
118 
119         </div>
120         
#7
+
 /home/pwj2d7hixaun/public_html/theprintshub.com/protected/controllers/SiteController.php(215): CController->render()
210     
211     $layout=($layout=="grid" || $layout=="list")?$layout:"grid";
212     
213     $category=Category::model()->findByPk($catid);
214     
215     $this->render('product',array('layout'=>$layout,'data'=>$data,'cat'=>$cat,'category'=>$category,'product'=>$product));    
216     }
217 
218     /**
219      * This is the action to handle external exceptions.
220      */
#15
+
 /home/pwj2d7hixaun/public_html/theprintshub.com/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 01:05:19 Apache Yii Framework/1.1.15