/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 {
#0 |
+
–
/home/shipplaning/public_html/framework/collections/CAttributeCollection.php(52): CComponent->__get("webpath") 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 |
#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); |
#2 |
+
–
/home/shipplaning/public_html/framework/web/CBaseController.php(119): require("/home/shipplaning/public_html/themes/blue/views/royal/_2column.p...") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#3 |
+
–
/home/shipplaning/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/shipplaning/public_html/themes/blue/views/royal/_2column.p...", array("index" => 0, "data" => Content, "widget" => CListView), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#4 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(866): CBaseController->renderFile("/home/shipplaning/public_html/themes/blue/views/royal/_2column.p...", array("index" => 0, "data" => Content, "widget" => CListView), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#5 |
+
–
/home/shipplaning/public_html/framework/zii/widgets/CListView.php(242): CController->renderPartial("_2column", array("index" => 0, "data" => Content, "widget" => CListView)) 237 { 238 $data=$this->viewData; 239 $data['index']=$i; 240 $data['data']=$item; 241 $data['widget']=$this; 242 $owner->$render($this->itemView,$data); 243 if($j++ < $n-1) 244 echo $this->separator; 245 } 246 } 247 else |
#6 |
+
–
/home/shipplaning/public_html/framework/zii/widgets/CBaseListView.php(158): CListView->renderItems() 153 protected function renderSection($matches) 154 { 155 $method='render'.$matches[1]; 156 if(method_exists($this,$method)) 157 { 158 $this->$method(); 159 $html=ob_get_contents(); 160 ob_clean(); 161 return $html; 162 } 163 else |
#7 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#8 |
+
–
/home/shipplaning/public_html/framework/zii/widgets/CBaseListView.php(141): preg_replace_callback("/{(\w+)}/", array(CListView, "renderSection"), "{summary}
{sorter}
{items}
{pager}") 136 * The rendering results will replace the corresponding placeholders in {@link template}. 137 */ 138 public function renderContent() 139 { 140 ob_start(); 141 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 142 ob_end_flush(); 143 } 144 145 /** 146 * Renders a section. |
#9 |
+
–
/home/shipplaning/public_html/framework/zii/widgets/CBaseListView.php(126): CBaseListView->renderContent() 121 { 122 $this->registerClientScript(); 123 124 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 125 126 $this->renderContent(); 127 $this->renderKeys(); 128 129 echo CHtml::closeTag($this->tagName); 130 } 131 |
#10 |
+
–
/home/shipplaning/public_html/framework/web/CBaseController.php(166): CBaseListView->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /** |
#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 ?> |
#12 |
+
–
/home/shipplaning/public_html/framework/web/CBaseController.php(119): require("/home/shipplaning/public_html/themes/blue/views/royal/view_all.p...") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#13 |
+
–
/home/shipplaning/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/shipplaning/public_html/themes/blue/views/royal/view_all.p...", array("content_model" => CActiveDataProvider, "type_name" => "royal"), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#14 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(866): CBaseController->renderFile("/home/shipplaning/public_html/themes/blue/views/royal/view_all.p...", array("content_model" => CActiveDataProvider, "type_name" => "royal"), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#15 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(779): CController->renderPartial("view_all", array("content_model" => CActiveDataProvider, "type_name" => "royal"), true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
#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 } |
#17 |
unknown(0): RoyalController->actionViewAll("1")
|
#18 |
+
–
/home/shipplaning/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(RoyalController, array("1")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#19 |
+
–
/home/shipplaning/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(RoyalController, ReflectionMethod, array("type_id" => "1")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#20 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("type_id" => "1")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#21 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#22 |
+
–
/home/shipplaning/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#23 |
+
–
/home/shipplaning/public_html/framework/web/CWebApplication.php(277): CController->run("viewAll") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#24 |
+
–
/home/shipplaning/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("royal/viewAll/type_id/1") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#25 |
+
–
/home/shipplaning/public_html/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#26 |
+
–
/home/shipplaning/public_html/index.php(24): CApplication->run() 19 defined('YII_DEBUG') or define('YII_DEBUG',true); 20 // specify how many levels of call stack should be shown in each log message 21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 22 23 require_once($yii); 24 Yii::createWebApplication($config)->run(); |