/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/extensions/widgets/views/WLastArticles.php(21)
09 $index = mb_strpos($content, ' ', $len, 'utf-8'); 10 if($index !== false) 11 $content = mb_substr($content, 0, $index, 'utf-8').'...'; 12 13 $url = Yii::app()->createUrl('article',array('id'=>$article->article_id,'title'=>$article->title)); 14 15 echo '<div class="article"> 16 <a href="'.$url.'"> 17 <h4>'.$article->title.'</h4> 18 <p> 19 '.$content.' 20 </p>'; 21 if(count($article->tag) > 0) 22 { 23 echo '<div class="tags">'; 24 foreach($article->tag as $tag) 25 echo '<div class="tag">'.$tag->title.'</div>'; 26 echo '</div>'; 27 } 28 echo ' 29 </a> 30 </div>'; 31 }
#0 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/db/ar/CActiveFinder.php(482): CJoinElement->applyLazyCondition() 477 { 478 $query->limit=$child->relation->limit; 479 $query->offset=$child->relation->offset; 480 } 481 482 $child->applyLazyCondition($query,$baseRecord); 483 484 $this->_joined=true; 485 $child->_joined=true; 486 487 $this->_finder->baseLimited=false; |
#1 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind() 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
#2 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(6987): CActiveFinder->lazyFind() 6982 } 6983 else 6984 $r=$name; 6985 unset($this->_related[$name]); 6986 $finder=new CActiveFinder($this,$r); 6987 $finder->lazyFind($this); 6988 if(!isset($this->_related[$name])) 6989 { 6990 if($relation instanceof CHasManyRelation) 6991 $this->_related[$name]=array(); 6992 elseif($relation instanceof CStatRelation) |
#3 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(6910): CActiveRecord->getRelated() 6905 elseif(isset($this->getMetaData()->columns[$name])) 6906 return null; 6907 elseif(isset($this->_related[$name])) 6908 return $this->_related[$name]; 6909 elseif(isset($this->getMetaData()->relations[$name])) 6910 return $this->getRelated($name); 6911 else 6912 return parent::__get($name); 6913 } 6914 public function __set($name,$value) 6915 { |
#4 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/extensions/widgets/views/WLastArticles.php(21): CActiveRecord->__get() 16 <a href="'.$url.'"> 17 <h4>'.$article->title.'</h4> 18 <p> 19 '.$content.' 20 </p>'; 21 if(count($article->tag) > 0) 22 { 23 echo '<div class="tags">'; 24 foreach($article->tag as $tag) 25 echo '<div class="tag">'.$tag->title.'</div>'; 26 echo '</div>'; |
#5 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3256): require("/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/...") 3251 ob_implicit_flush(false); 3252 require($_viewFile_); 3253 return ob_get_clean(); 3254 } 3255 else 3256 require($_viewFile_); 3257 } 3258 public function createWidget($className,$properties=array()) 3259 { 3260 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 3261 $widget->init(); |
#6 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3231): CBaseController->renderInternal() 3226 { 3227 $widgetCount=count($this->_widgetStack); 3228 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3229 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3230 else 3231 $content=$this->renderInternal($viewFile,$data,$return); 3232 if(count($this->_widgetStack)===$widgetCount) 3233 return $content; 3234 else 3235 { 3236 $widget=end($this->_widgetStack); |
#7 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(5770): CBaseController->renderFile() 5765 return false; 5766 } 5767 public function render($view,$data=null,$return=false) 5768 { 5769 if(($viewFile=$this->getViewFile($view))!==false) 5770 return $this->renderFile($viewFile,$data,$return); 5771 else 5772 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 5773 array('{widget}'=>get_class($this), '{view}'=>$view))); 5774 } 5775 } |
#8 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/extensions/widgets/WLastArticles.php(32): CWidget->render() 27 } 28 29 public function run() 30 { 31 $this->render('WLastArticles',array( 32 )); 33 } 34 } |
#9 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3277): WLastArticles->run() 3272 return ob_get_clean(); 3273 } 3274 else 3275 { 3276 $widget=$this->createWidget($className,$properties); 3277 $widget->run(); 3278 return $widget; 3279 } 3280 } 3281 public function beginWidget($className,$properties=array()) 3282 { |
#10 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/views/site/index.php(12): CBaseController->widget() 07 <div class="block"> 08 <h2 class="title">Last Articles</h2> 09 <div class="lastArticles"> 10 <?php 11 $this->widget('ext.widgets.WLastArticles', array( 12 'limit'=>5 13 )); 14 ?> 15 </div> 16 </div> 17 <a href="<?php echo Yii::app()->baseUrl; ?>/article/" id="allArticles">See All Articles</a> |
#11 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3252): require("/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/...") 3247 $data=$_data_; 3248 if($_return_) 3249 { 3250 ob_start(); 3251 ob_implicit_flush(false); 3252 require($_viewFile_); 3253 return ob_get_clean(); 3254 } 3255 else 3256 require($_viewFile_); 3257 } |
#12 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3231): CBaseController->renderInternal() 3226 { 3227 $widgetCount=count($this->_widgetStack); 3228 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3229 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3230 else 3231 $content=$this->renderInternal($viewFile,$data,$return); 3232 if(count($this->_widgetStack)===$widgetCount) 3233 return $content; 3234 else 3235 { 3236 $widget=end($this->_widgetStack); |
#13 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3655): CBaseController->renderFile() 3650 } 3651 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3652 { 3653 if(($viewFile=$this->getViewFile($view))!==false) 3654 { 3655 $output=$this->renderFile($viewFile,$data,true); 3656 if($processOutput) 3657 $output=$this->processOutput($output); 3658 if($return) 3659 return $output; 3660 else |
#14 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3623): CController->renderPartial() 3618 } 3619 public function render($view,$data=null,$return=false) 3620 { 3621 if($this->beforeRender($view)) 3622 { 3623 $output=$this->renderPartial($view,$data,true); 3624 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3625 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3626 $this->afterRender($view,$output); 3627 $output=$this->processOutput($output); 3628 if($return) |
#15 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/protected/controllers/SiteController.php(62): CController->render() 57 58 $this->pageTitle = Yii::app()->params['site_name']; 59 60 Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/index/index.css'); 61 62 $this->render('index'); 63 } 64 65 66 public function actionArticles() 67 { |
#16 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3891): SiteController->actionIndex() 3886 $controller=$this->getController(); 3887 $method=new ReflectionMethod($controller, $methodName); 3888 if($method->getNumberOfParameters()>0) 3889 return $this->runWithParamsInternal($controller, $method, $params); 3890 else 3891 return $controller->$methodName(); 3892 } 3893 } 3894 class CWebUser extends CApplicationComponent implements IWebUser 3895 { 3896 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#17 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3403): CInlineAction->runWithParams() 3398 { 3399 $priorAction=$this->_action; 3400 $this->_action=$action; 3401 if($this->beforeAction($action)) 3402 { 3403 if($action->runWithParams($this->getActionParams())===false) 3404 $this->invalidActionParams($action); 3405 else 3406 $this->afterAction($action); 3407 } 3408 $this->_action=$priorAction; |
#18 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3388): CController->runAction() 3383 $this->missingAction($actionID); 3384 } 3385 public function runActionWithFilters($action,$filters) 3386 { 3387 if(empty($filters)) 3388 $this->runAction($action); 3389 else 3390 { 3391 $priorAction=$this->_action; 3392 $this->_action=$action; 3393 CFilterChain::create($this,$action,$filters)->run(); |
#19 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(3378): CController->runActionWithFilters() 3373 { 3374 if(($parent=$this->getModule())===null) 3375 $parent=Yii::app(); 3376 if($parent->beforeControllerAction($this,$action)) 3377 { 3378 $this->runActionWithFilters($action,$this->filters()); 3379 $parent->afterControllerAction($this,$action); 3380 } 3381 } 3382 else 3383 $this->missingAction($actionID); |
#20 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(1725): CController->run() 1720 { 1721 list($controller,$actionID)=$ca; 1722 $oldController=$this->_controller; 1723 $this->_controller=$controller; 1724 $controller->init(); 1725 $controller->run($actionID); 1726 $this->_controller=$oldController; 1727 } 1728 else 1729 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1730 array('{route}'=>$route===''?$this->defaultController:$route))); |
#21 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(1645): CWebApplication->runController() 1640 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1641 $_GET[$name]=$value; 1642 } 1643 else 1644 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1645 $this->runController($route); 1646 } 1647 protected function registerCoreComponents() 1648 { 1649 parent::registerCoreComponents(); 1650 $components=array( |
#22 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_html/framework/yiilite.php(1170): CWebApplication->processRequest() 1165 public function run() 1166 { 1167 if($this->hasEventHandler('onBeginRequest')) 1168 $this->onBeginRequest(new CEvent($this)); 1169 register_shutdown_function(array($this,'end'),0,false); 1170 $this->processRequest(); 1171 if($this->hasEventHandler('onEndRequest')) 1172 $this->onEndRequest(new CEvent($this)); 1173 } 1174 public function end($status=0,$exit=true) 1175 { |
#23 |
+
–
/home/253096.cloudwaysapps.com/kwghpcwvvz/public_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(); |