/var/www/html/protected/models/Thumbnail.php(128)
116 private static function imageCreateFromFile($filename) 117 { 118 if ( ! is_file($filename) || ! is_readable($filename) ) { 119 trigger_error('Unable to open file "' . $filename . '"', E_USER_NOTICE); 120 return false; 121 } 122 123 // determine image format 124 list( , , $type) = getimagesize($filename); 125 126 switch ($type) { 127 case IMAGETYPE_JPEG: 128 return imagecreatefromjpeg($filename); 129 break; 130 case IMAGETYPE_PNG: 131 return imagecreatefrompng($filename); 132 break; 133 case IMAGETYPE_GIF: 134 return imagecreatefromgif($filename); 135 break; 136 } 137 trigger_error('Unsupport image type', E_USER_NOTICE); 138 return false; 139 } 140
#0 |
+
–
/var/www/html/protected/models/Thumbnail.php(96): Thumbnail::imageCreateFromFile("/var/www/html/uploads/2/images/IMG_9852.jpg") 091 * @see Thumbnail::imageCreateFromFile(), Thumbnail::imageCreateFromString() 092 */ 093 private static function imageCreate($input) 094 { 095 if ( is_file($input) ) { 096 return Thumbnail::imageCreateFromFile($input); 097 } else if ( is_string($input) ) { 098 return Thumbnail::imageCreateFromString($input); 099 } else { 100 return $input; 101 } |
#1 |
+
–
/var/www/html/protected/models/Thumbnail.php(259): Thumbnail::imageCreate("/var/www/html/uploads/2/images/IMG_9852.jpg") 254 * @see Thumbnail::output() 255 */ 256 private static function render($input, $options=array()) 257 { 258 // Create the source image 259 $sourceImage = Thumbnail::imageCreate($input); 260 if ( ! is_resource($sourceImage) ) { 261 trigger_error('Invalid image resource', E_USER_NOTICE); 262 return false; 263 } 264 $sourceWidth = imagesx($sourceImage); |
#2 |
+
–
/var/www/html/protected/models/Thumbnail.php(194): Thumbnail::render("/var/www/html/uploads/2/images/IMG_9852.jpg", array("type" => 2, "width" => 165, "height" => 165, "method" => 1)) 189 * @access public 190 */ 191 public static function output($input, $output=null, $options=array()) 192 { 193 // Load source file and render image 194 $renderImage = Thumbnail::render($input, $options); 195 if ( ! $renderImage ) { 196 trigger_error('Error rendering image', E_USER_NOTICE); 197 return false; 198 } 199 |
#3 |
+
–
/var/www/html/protected/models/Content.php(616): Thumbnail::output("/var/www/html/uploads/2/images/IMG_9852.jpg", "images/thumbs/ratusan-mahasiswa-unsyiah-dilatih-berwirausaha.jpg", array("type" => 2, "width" => 165, "height" => 165, "method" => 1)) 611 'type' => IMAGETYPE_JPEG, 612 'width' => $width, 613 'height' => $height, 614 'method' => THUMBNAIL_METHOD_SCALE_MIN 615 ); 616 Thumbnail::output($filename, 'images/thumbs/'.$gbr->alias.'.jpg', $options_1); 617 return $cetak='<a href="'.trim(Content::imgUrl($gbr->thumb)).'" target="_blank"><img src="'.Yii::app()->request->baseUrl.'/images/thumbs/'.$gbr->alias.'.jpg" width="'.$width.'" height="'.$height.'" alt="'.$gbr->title.' - '.$gbr->title.'" title="'.$gbr->title.' - '.$gbr->title.'" class="img-polaroid" /></a>'; 618 else: 619 return '<img src="'.Yii::app()->baseUrl.'/assets/img/event-img-01.jpg" style="width:'.$width.'px;height:'.$height.'px;">'; 620 endif; 621 else: |
#4 |
+
–
/var/www/html/protected/views/site/berita.php(44): Content::imgResize("1173", 165, 165) 39 { 40 return '<article class="event"> 41 <div class="event-thumbnail"> 42 <figure class="event-image"> 43 <div class="image-wrapper"> 44 '.Content::imgResize($data->id,165,165).' 45 </div> 46 </figure> 47 </div> 48 <aside> 49 <header> |
#5 |
+
–
/var/www/html/fr317/yiilite.php(872): CBaseController->{closure}(Content, 0, CDataColumn) 867 return eval('return '.$_expression_.';'); 868 } 869 else 870 { 871 $_data_[]=$this; 872 return call_user_func_array($_expression_, $_data_); 873 } 874 } 875 } 876 class CEvent extends CComponent 877 { |
#6 |
+
–
/var/www/html/fr317/zii/widgets/grid/CDataColumn.php(142): CComponent->evaluateExpression(Closure, array("data" => Content, "row" => 0, 0 => CDataColumn)) 137 */ 138 public function getDataCellContent($row) 139 { 140 $data=$this->grid->dataProvider->data[$row]; 141 if($this->value!==null) 142 $value=$this->evaluateExpression($this->value,array('data'=>$data,'row'=>$row)); 143 elseif($this->name!==null) 144 $value=CHtml::value($data,$this->name); 145 return $value===null ? $this->grid->nullDisplay : $this->grid->getFormatter()->format($value,$this->type); 146 } 147 } |
#7 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridColumn.php(231): CDataColumn->getDataCellContent(0) 226 * @param mixed $data the data associated with the row 227 * @deprecated since 1.1.16. Use {@link getDataCellContent()} instead. 228 */ 229 protected function renderDataCellContent($row,$data) 230 { 231 echo $this->getDataCellContent($row); 232 } 233 234 /** 235 * Returns the filter cell content. 236 * The default implementation simply returns an empty column. |
#8 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridColumn.php(154): CGridColumn->renderDataCellContent(0, Content) 149 else 150 $options['class']=$class; 151 } 152 } 153 echo CHtml::openTag('td',$options); 154 $this->renderDataCellContent($row,$data); 155 echo '</td>'; 156 } 157 158 /** 159 * Renders the footer cell. |
#9 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridView.php(638): CGridColumn->renderDataCell(0) 633 * @param integer $row 634 * @since 1.1.16 635 */ 636 protected function renderDataCell($column, $row) 637 { 638 $column->renderDataCell($row); 639 } 640 641 /** 642 * @return boolean whether the table should render a footer. 643 * This is true if any of the {@link columns} has a true {@link CGridColumn::hasFooter} value. |
#10 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridView.php(622): CGridView->renderDataCell(CDataColumn, 0) 617 $htmlOptions['class']=$class; 618 } 619 620 echo CHtml::openTag('tr', $htmlOptions)."\n"; 621 foreach($this->columns as $column) 622 $this->renderDataCell($column, $row); 623 echo "</tr>\n"; 624 } 625 626 /** 627 * A seam for people extending CGridView to be able to hook onto the data cell rendering process. |
#11 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridView.php(578): CGridView->renderTableRow(0) 573 echo "<tbody>\n"; 574 575 if($n>0) 576 { 577 for($row=0;$row<$n;++$row) 578 $this->renderTableRow($row); 579 } 580 else 581 { 582 echo '<tr><td colspan="'.count($this->columns).'" class="empty">'; 583 $this->renderEmptyText(); |
#12 |
+
–
/var/www/html/fr317/zii/widgets/grid/CGridView.php(488): CGridView->renderTableBody() 483 if($this->dataProvider->getItemCount()>0 || $this->showTableOnEmpty) 484 { 485 echo "<table class=\"{$this->itemsCssClass}\">\n"; 486 $this->renderTableHeader(); 487 ob_start(); 488 $this->renderTableBody(); 489 $body=ob_get_clean(); 490 $this->renderTableFooter(); 491 echo $body; // TFOOT must appear before TBODY according to the standard. 492 echo "</table>"; 493 } |
#13 |
+
–
/var/www/html/fr317/zii/widgets/CBaseListView.php(181): CGridView->renderItems() 176 protected function renderSection($matches) 177 { 178 $method='render'.$matches[1]; 179 if(method_exists($this,$method)) 180 { 181 $this->$method(); 182 $html=ob_get_contents(); 183 ob_clean(); 184 return $html; 185 } 186 else |
#14 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#15 |
+
–
/var/www/html/fr317/zii/widgets/CBaseListView.php(164): preg_replace_callback("/{(\w+)}/", array(CGridView, "renderSection"), "{summary}
{items}
{pager}") 159 * The rendering results will replace the corresponding placeholders in {@link template}. 160 */ 161 public function renderContent() 162 { 163 ob_start(); 164 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 165 ob_end_flush(); 166 } 167 168 /** 169 * Renders a section. |
#16 |
+
–
/var/www/html/fr317/zii/widgets/CBaseListView.php(149): CBaseListView->renderContent() 144 { 145 $this->registerClientScript(); 146 147 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 148 149 $this->renderContent(); 150 $this->renderKeys(); 151 152 echo CHtml::closeTag($this->tagName); 153 } 154 |
#17 |
+
–
/var/www/html/fr317/yiilite.php(3552): CBaseListView->run() 3547 return ob_get_clean(); 3548 } 3549 else 3550 { 3551 $widget=$this->createWidget($className,$properties); 3552 $widget->run(); 3553 return $widget; 3554 } 3555 } 3556 public function beginWidget($className,$properties=array()) 3557 { |
#18 |
+
–
/var/www/html/protected/views/site/berita.php(63): CBaseController->widget("zii.widgets.grid.CGridView", array("id" => "content-grid", "dataProvider" => CActiveDataProvider, "filter" => Content, "pager" => array("maxButtonCount" => "7", "header" => ""), ...)) 58 </article>'; 59 }, 60 'type'=>'raw', 61 'name'=>'title', 62 'filter'=>false, 63 'header'=>'' 64 ), 65 ), 66 )); ?> 67 </div> 68 </section> |
#19 |
+
–
/var/www/html/fr317/yiilite.php(3519): require("/var/www/html/protected/views/site/berita.php") 3514 $data=$_data_; 3515 if($_return_) 3516 { 3517 ob_start(); 3518 ob_implicit_flush(false); 3519 require($_viewFile_); 3520 return ob_get_clean(); 3521 } 3522 else 3523 require($_viewFile_); 3524 } |
#20 |
+
–
/var/www/html/fr317/yiilite.php(3498): CBaseController->renderInternal("/var/www/html/protected/views/site/berita.php", array("model" => Content), true) 3493 { 3494 $widgetCount=count($this->_widgetStack); 3495 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3496 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3497 else 3498 $content=$this->renderInternal($viewFile,$data,$return); 3499 if(count($this->_widgetStack)===$widgetCount) 3500 return $content; 3501 else 3502 { 3503 $widget=end($this->_widgetStack); |
#21 |
+
–
/var/www/html/fr317/yiilite.php(3930): CBaseController->renderFile("/var/www/html/protected/views/site/berita.php", array("model" => Content), true) 3925 } 3926 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3927 { 3928 if(($viewFile=$this->getViewFile($view))!==false) 3929 { 3930 $output=$this->renderFile($viewFile,$data,true); 3931 if($processOutput) 3932 $output=$this->processOutput($output); 3933 if($return) 3934 return $output; 3935 else |
#22 |
+
–
/var/www/html/fr317/yiilite.php(3898): CController->renderPartial("berita", array("model" => Content), true) 3893 } 3894 public function render($view,$data=null,$return=false) 3895 { 3896 if($this->beforeRender($view)) 3897 { 3898 $output=$this->renderPartial($view,$data,true); 3899 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3900 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3901 $this->afterRender($view,$output); 3902 $output=$this->processOutput($output); 3903 if($return) |
#23 |
+
–
/var/www/html/protected/controllers/SiteController.php(97): CController->render("berita", array("model" => Content)) 092 $model->unsetAttributes(); // clear any default values 093 if(isset($_GET['Content'])) 094 $model->attributes=$_GET['Content']; 095 096 $this->render('berita',array( 097 'model'=>$model, 098 )); 099 } 100 public function actionAgenda() 101 { 102 $this->layout='mainEventListing'; |
#24 |
+
–
/var/www/html/fr317/yiilite.php(4165): SiteController->actionBerita() 4160 $methodName='action'.$this->getId(); 4161 $controller=$this->getController(); 4162 $method=new ReflectionMethod($controller, $methodName); 4163 if($method->getNumberOfParameters()>0) 4164 return $this->runWithParamsInternal($controller, $method, $params); 4165 $controller->$methodName(); 4166 return true; 4167 } 4168 } 4169 class CWebUser extends CApplicationComponent implements IWebUser 4170 { |
#25 |
+
–
/var/www/html/fr317/yiilite.php(3678): CInlineAction->runWithParams(array()) 3673 { 3674 $priorAction=$this->_action; 3675 $this->_action=$action; 3676 if($this->beforeAction($action)) 3677 { 3678 if($action->runWithParams($this->getActionParams())===false) 3679 $this->invalidActionParams($action); 3680 else 3681 $this->afterAction($action); 3682 } 3683 $this->_action=$priorAction; |
#26 |
+
–
/var/www/html/fr317/yiilite.php(6922): CController->runAction(CInlineAction) 6917 { 6918 $filter=$this->itemAt($this->filterIndex++); 6919 $filter->filter($this); 6920 } 6921 else 6922 $this->controller->runAction($this->action); 6923 } 6924 } 6925 class CFilter extends CComponent implements IFilter 6926 { 6927 public function filter($filterChain) |
#27 |
+
–
/var/www/html/fr317/yiilite.php(6931): CFilterChain->run() 6926 { 6927 public function filter($filterChain) 6928 { 6929 if($this->preFilter($filterChain)) 6930 { 6931 $filterChain->run(); 6932 $this->postFilter($filterChain); 6933 } 6934 } 6935 public function init() 6936 { |
#28 |
+
–
/var/www/html/fr317/yiilite.php(6919): CFilter->filter(CFilterChain) 6914 public function run() 6915 { 6916 if($this->offsetExists($this->filterIndex)) 6917 { 6918 $filter=$this->itemAt($this->filterIndex++); 6919 $filter->filter($this); 6920 } 6921 else 6922 $this->controller->runAction($this->action); 6923 } 6924 } |
#29 |
+
–
/var/www/html/fr317/yiilite.php(3668): CFilterChain->run() 3663 $this->runAction($action); 3664 else 3665 { 3666 $priorAction=$this->_action; 3667 $this->_action=$action; 3668 CFilterChain::create($this,$action,$filters)->run(); 3669 $this->_action=$priorAction; 3670 } 3671 } 3672 public function runAction($action) 3673 { |
#30 |
+
–
/var/www/html/fr317/yiilite.php(3653): CController->runActionWithFilters(CInlineAction, array(array(0 => "application.filters.html.ECompressHtmlFilter", "gzip" => true, "doStripNewlines" => true, "actions" => "index,newsDetil,pengumumanDetil,utamaDetil"))) 3648 { 3649 if(($parent=$this->getModule())===null) 3650 $parent=Yii::app(); 3651 if($parent->beforeControllerAction($this,$action)) 3652 { 3653 $this->runActionWithFilters($action,$this->filters()); 3654 $parent->afterControllerAction($this,$action); 3655 } 3656 } 3657 else 3658 $this->missingAction($actionID); |
#31 |
+
–
/var/www/html/fr317/yiilite.php(1768): CController->run("berita") 1763 { 1764 list($controller,$actionID)=$ca; 1765 $oldController=$this->_controller; 1766 $this->_controller=$controller; 1767 $controller->init(); 1768 $controller->run($actionID); 1769 $this->_controller=$oldController; 1770 } 1771 else 1772 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1773 array('{route}'=>$route===''?$this->defaultController:$route))); |
#32 |
+
–
/var/www/html/fr317/yiilite.php(1688): CWebApplication->runController("site/berita") 1683 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1684 $_GET[$name]=$value; 1685 } 1686 else 1687 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1688 $this->runController($route); 1689 } 1690 protected function registerCoreComponents() 1691 { 1692 parent::registerCoreComponents(); 1693 $components=array( |
#33 |
+
–
/var/www/html/fr317/yiilite.php(1205): CWebApplication->processRequest() 1200 public function run() 1201 { 1202 if($this->hasEventHandler('onBeginRequest')) 1203 $this->onBeginRequest(new CEvent($this)); 1204 register_shutdown_function(array($this,'end'),0,false); 1205 $this->processRequest(); 1206 if($this->hasEventHandler('onEndRequest')) 1207 $this->onEndRequest(new CEvent($this)); 1208 } 1209 public function end($status=0,$exit=true) 1210 { |
#34 |
+
–
/var/www/html/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(); |