/home/activesites/coupon4savings/protected/modules/coupon/models/Coupon.php(439)
427 428 // from relationship 429 // $sql .= ' RIGHT JOIN `term_coupon` AS `s` ON (`c`.`id` = `s`.`coupon_id`)'; 430 // $sql .= ' RIGHT JOIN `term` AS `t` ON (`t`.`id` = `s`.`term_id`)'; 431 432 // check status 433 $sql .= ' WHERE `c`.`status` = \'' . Coupon::STATUS_ENABLE . '\''; 434 435 // list by store 436 if ($list == 'store') { 437 438 // filter by relation store 439 $sql .= ' AND (`c`.`store_id` = '.$object->id.')'; 440 } 441 442 // if ($list != 'home') 443 // $sql .= ' OR `c`.`status` = \'' . Coupon::STATUS_UNRELIABLE . '\''; 444 445 $sql .= ' GROUP BY `c`.`id`'; 446 447 // check order 448 if ($list == 'home') { 449 $sql .= ' ORDER BY `c`.`id` DESC'; 450 } else { 451 $sql .= ' ORDER BY `c`.`sorder` DESC';
#0 |
+
–
/home/activesites/coupon4savings/protected/modules/coupon/controllers/public/CouponController.php(123): Coupon::getListFeed("store", null) 118 $object = Term::model()->findByAttributes(array('slug' => $slug)); 119 120 // check object id (store | category) 121 $objectId = ($object) ? $object->id : null; 122 123 $coupons = Coupon::model()->getListFeed($list, $object); 124 125 Yii::import('ext.feed.*'); 126 127 $feed = new EFeed(); 128 |
#1 |
unknown(0): CouponController->actionFeed("store", "foodnetworkstore.com", "")
|
#2 |
+
–
/home/activesites/coupon4savings/protected/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(CouponController, array("store", "foodnetworkstore.com", "")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#3 |
+
–
/home/activesites/coupon4savings/protected/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(CouponController, ReflectionMethod, array("list" => "store", "slug" => "foodnetworkstore.com")) 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 } |
#4 |
+
–
/home/activesites/coupon4savings/protected/framework/web/CController.php(308): CInlineAction->runWithParams(array("list" => "store", "slug" => "foodnetworkstore.com")) 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; |
#5 |
+
–
/home/activesites/coupon4savings/protected/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(); |
#6 |
+
–
/home/activesites/coupon4savings/protected/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); |
#7 |
+
–
/home/activesites/coupon4savings/protected/framework/web/CWebApplication.php(282): CController->run("feed") 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))); |
#8 |
+
–
/home/activesites/coupon4savings/protected/framework/web/CWebApplication.php(141): CWebApplication->runController("coupon/public/coupon/feed") 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. |
#9 |
+
–
/home/activesites/coupon4savings/protected/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 /** |
#10 |
+
–
/home/activesites/coupon4savings/index.php(20): CApplication->run() 15 16 require_once($yii); 17 require_once(ABS_PATH . '/protected/components/MegaAdsApplication.php'); 18 19 $app = new MegaAdsApplication($config); 20 $app->run(); |