/home/user/web/russianasha.ru/public_html/protected/extensions/image/Image.php(380)
368 { 369 // If no new image is defined, use the current image 370 empty($new_image) and $new_image = $this->image['file']; 371 372 // Separate the directory and filename 373 $dir = pathinfo($new_image, PATHINFO_DIRNAME); 374 $file = pathinfo($new_image, PATHINFO_BASENAME); 375 376 // Normalize the path 377 $dir = str_replace('\\', '/', realpath($dir)) . '/'; 378 379 if (!is_writable($dir)) 380 throw new CException('image directory unwritable'); 381 382 if ($status = $this->driver->process($this->image, $this->actions, $dir, $file)) { 383 if ($chmod !== FALSE) { 384 // Set permissions 385 chmod($new_image, $chmod); 386 } 387 } 388 389 // Reset actions. Subsequent save() or render() will not apply previous actions. 390 if ($keep_actions === FALSE) 391 $this->actions = array(); 392
#0 |
+
–
/home/user/web/russianasha.ru/public_html/protected/extensions/images/Images.php(79): Image->save("/home/user/web/russianasha.ru/public_html/files/tours/cache/-fil...") 74 } */ 75 $new_image->centeredpreview($width, $height); 76 77 if ($convert == 'jpg' || $convert == true) 78 $new_image->png2jpg(); // ставим фон 79 $new_image->save($new_image_name); 80 } else { 81 return false; 82 } 83 } 84 |
#1 |
+
–
/home/user/web/russianasha.ru/public_html/protected/models/TourImages.php(185): Images->resize("22/a5/podari-mne-parizh-i-fialku-monmartra-ekskursiya-po-moskve-...", 200, 150) 180 ->setConverting(true) 181 ->setDirectory($this->images_path); 182 183 foreach ($results as $result) { 184 $attrs = $result->attributes; 185 $attrs['src'] = Yii::app()->images->resize($attrs['src'], 200, 150); 186 $tours_images_data[$result['tour_id']] = $attrs; 187 } 188 189 Yii::app()->images->setCacheDirectory('/files/lib/cache/') 190 ->setCacheUrlPath('/files/lib/cache/') |
#2 |
+
–
/home/user/web/russianasha.ru/public_html/protected/models/Tours.php(286): TourImages->getMainImages(array("filter_id" => array()), true) 281 } 282 283 $dates = TourDates::model()->getMinDates($data); 284 $regions = TourRegions::model()->getToursRegions($data); 285 $themes = TourThemes::model()->getToursThemes($data); 286 $images = TourImages::model()->getMainImages($data, $resizeImages); 287 288 /* @var Tours $result */ 289 foreach ($results as $result) { 290 $tours_data[$result->id] = $result->attributes; 291 $tours_data[$result->id]['priceCurrencyCode'] = $result->priceCurrencyCode; |
#3 |
+
–
/home/user/web/russianasha.ru/public_html/protected/modules/companies/controllers/OperatorController.php(70): Tours::searchTours(TourSearchFilter) 65 $themes = Themes::model()->getListById($themes); 66 67 $filter = new TourSearchFilter(); 68 $filter->setOperatorsCondition($operator->operator_id); 69 70 $tours = Tours::searchTours($filter); 71 72 $criteria = new CDbCriteria(); 73 74 $criteria->with = array('region', 'theme'); 75 $criteria->addCondition('operator_id = ' . $operatorId); |
#4 |
unknown(0): OperatorController->actionView("160")
|
#5 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(OperatorController, array("160")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#6 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(OperatorController, ReflectionMethod, array("operatorId" => "160")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#7 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("operatorId" => "160")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#8 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#10 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/home/user/web/russianasha.ru/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("companies/operator/view") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/home/user/web/russianasha.ru/public_html/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#13 |
+
–
/home/user/web/russianasha.ru/public_html/index.php(35): CApplication->run() 30 if(YII_DEBUG) { 31 error_reporting(\E_ALL | ~\E_NOTICE); 32 ini_set('display_errors', 'On'); 33 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 34 } 35 Yii::createWebApplication($config)->run(); |