D:\Mail\Luteranie\mikolow\protected\models\Articles.php(185)
173 if($width == 100) { 174 $image = $this->gallery.$this->path_to_gallery."small/".$gallery[0]->name; 175 } elseif ($width == 400) { 176 $image = $this->gallery.$this->path_to_gallery."medium/".$gallery[0]->name; 177 } else { 178 $image = $this->gallery.$this->path_to_gallery."big/".$gallery[0]->name; 179 } 180 // $image = $this->gallery.$this->path_to_gallery.$gallery[0]->name; 181 if(is_numeric($width)) 182 { 183 if(!empty($gallery[0]->name)&&file_exists($image)) 184 { 185 $size = Yii::get_scaled_dim_array($image,$max_w = $width, $max_h = NULL); 186 if($size[0]==0||$size[1]==0) 187 { 188 $size = Yii::get_scaled_dim_array(Articles::NO_IMAGE,$max_w = $width, $max_h = NULL); 189 return CHtml::image(Articles::NO_IMAGE,'Brak obrazka',array('style'=>'width:'.$size[0].'px;height:'.$size[1].'px;'.$addition,'class'=>$klasa)); 190 } 191 else 192 { 193 return CHtml::image($image,'obrazek',array('style'=>'width:'.$size[0].'px;height:'.$size[1].'px;'.$addition,'class'=>$klasa)); 194 } 195 } 196 else 197 {
#0 |
+
–
D:\Mail\Luteranie\mikolow\protected\views\articles\index.php(15): Articles->getImage() 10 <?php 11 foreach($models as $n=>$model) 12 { 13 echo '<div style="overflow:hidden;margin-bottom:10px;">'; 14 echo '<div style="width:100px;float:left;margin-right:10px;">'; 15 echo $model->getImage(100); 16 echo '</div>'; 17 echo '<div style="width:605px;float:right;">'; 18 echo CHtml::link($model->name,array('view','id'=>$model->id),array("class"=>"article_link")).'<br />'; 19 echo '<span class="text_g_s">Data: '.$model->date_added.'</span><br />'; 20 echo $model->shortText(200); |
#1 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CBaseController.php(119): require("D:\Mail\Luteranie\mikolow\protected\views\articles\index.php") 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 } |
#2 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CBaseController.php(88): CBaseController->renderInternal() 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); |
#3 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(866): CBaseController->renderFile() 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 |
#4 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(779): CController->renderPartial() 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 |
#5 |
+
–
D:\Mail\Luteranie\mikolow\protected\controllers\ArticlesController.php(234): CController->render() 229 $models=Articles::model()->findAll($criteria); 230 231 $this->render('index',array( 232 'models'=>$models, 233 'pages'=>$pages, 234 'my_pages'=>$my_pages 235 )); 236 } 237 238 /** 239 * Manages all models. |
#6 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\actions\CInlineAction.php(50): ArticlesController->actionIndex() 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 } |
#7 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(300): CInlineAction->runWithParams() 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; |
#8 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\filters\CFilterChain.php(134): CController->runAction() 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#9 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\filters\CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#10 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(1144): CFilter->filter() 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#11 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl() 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#12 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter() 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#13 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#14 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CController.php(257): CController->runActionWithFilters() 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); |
#15 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CWebApplication.php(277): CController->run() 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))); |
#16 |
+
–
D:\Mail\Luteranie\mikolow\framework\web\CWebApplication.php(136): CWebApplication->runController() 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. |
#17 |
+
–
D:\Mail\Luteranie\mikolow\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 /** |
#18 |
+
–
D:\Mail\Luteranie\mikolow\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(); |