CException

คุณสมบัติ "CAttributeCollection.webpath" ยังไม่ถูกกำหนด

/home/shipplaning/public_html/framework/collections/CAttributeCollection.php(52)

40      * Returns a property value or an event handler list by property or event name.
41      * This method overrides the parent implementation by returning
42      * a key value if the key exists in the collection.
43      * @param string $name the property name or the event name
44      * @return mixed the property value or the event handler list
45      * @throws CException if the property/event is not defined.
46      */
47     public function __get($name)
48     {
49         if($this->contains($name))
50             return $this->itemAt($name);
51         else
52             return parent::__get($name);
53     }
54 
55     /**
56      * Sets value of a component property.
57      * This method overrides the parent implementation by adding a new key value
58      * to the collection.
59      * @param string $name the property name or event name
60      * @param mixed $value the property value or event handler
61      * @throws CException If the property is not defined or read-only.
62      */
63     public function __set($name,$value)
64     {

Stack Trace

#1
+
 /home/shipplaning/public_html/themes/blue/views/royal/_2column.php(2): CAttributeCollection->__get("webpath")
1 <li>
2     <?php echo "<a href='".Yii::app()->params->webpath."/index.php/royal/detail/content_id/$data->id' class='images' target='_blank'><img src='".Yii::app()->params->webpath."/upload/content/$data->id/$data->thumbnail' alt='$data->title' /></a>"; ?>
3     <div  style="width:300px;">
4         <h3><?php echo "<a href='".Yii::app()->params->webpath."/index.php/royal/detail/content_id/$data->id' target='_blank'>$data->title</a>"; ?></h3>
5         <p><?php echo $data->subhead; ?></p>
6         <p class="date"><?php if (YII::app()->language == 'th') {
7         echo Helper::thaidate('j F Y', $data->published, true, true);
#11
+
 /home/shipplaning/public_html/themes/blue/views/royal/view_all.php(17): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_2column", "enablePagination" => true, "summaryText" => "แสดง {start} - {end} จากทั้งหมด {cou...", ...))
12                 'dataProvider'=>$content_model,
13                 'itemView'=>'_2column',
14                 'enablePagination' => true,
15                 'summaryText' => 'แสดง {start} - {end} จากทั้งหมด {count} ข้อมูล',
16                 'emptyText' => 'ไม่พบข้อมูล',
17             )); ?> 
18             
19             <?php 
20 //            foreach($content as $c){ 
21 //                    if($c->title != null){
22                 ?>
#16
+
 /home/shipplaning/public_html/protected/controllers/RoyalController.php(267): CController->render("view_all", array("content_model" => CActiveDataProvider, "type_name" => "royal"))
262         
263         $this->render('view_all', array(
264             'content_model' => $content_model,
265             'type_name' => $type_name,
266                 )
267         );
268     }
269     
270 }
2024-03-29 15:36:04 Apache Yii Framework/1.1.8