/var/www/app/protected/controllers/SiteController.php(487)
475 476 /** 477 * Publica la factura en pdf para ws y email 478 * @param type $id 479 */ 480 public function actionFacturaPdf($id, $ver = null) { 481 482 $this->layout = 'none'; 483 484 $array = explode('-', $id); 485 486 $idSyA = $array[0]; 487 $idFactura = $array[1]; 488 489 // Apunta a la base de datos de la sucursal 490 Site::setConnDb(substr($idSyA, 0, 5)); 491 492 if (strpos("$idFactura", "C") !== FALSE) { 493 $idFactura = substr($idFactura, 1); 494 $cuenta = Comandas::getCuenta("Cotizacion $idFactura", 0, FALSE, FALSE, null, $idSyA); 495 } else { 496 $sql = "select fecha from comandas where nombreProducto = 'Registro de Control' and idSyA = ?"; 497 $fecha = Yii::app()->db->createCommand($sql)->queryScalar(array($idSyA)); 498 499 // Busca si la factura es del d a actual o dias pasados
| #0 |
unknown(0): SiteController->actionFacturaPdf("", null)
|
| #1 |
+
–
/var/www/app/yiifw/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(SiteController, array("", null)) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
| #2 |
+
–
/var/www/app/yiifw/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("r" => "site/facturaPdf", "id" => "")) 43 { 44 $methodName='action'.$this->getId(); 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 } |
| #3 |
+
–
/var/www/app/yiifw/web/CController.php(310): CInlineAction->runWithParams(array("r" => "site/facturaPdf", "id" => "")) 305 { 306 $priorAction=$this->_action; 307 $this->_action=$action; 308 if($this->beforeAction($action)) 309 { 310 if($action->runWithParams($this->getActionParams())===false) 311 $this->invalidActionParams($action); 312 else 313 $this->afterAction($action); 314 } 315 $this->_action=$priorAction; |
| #4 |
+
–
/var/www/app/yiifw/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 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 } |
| #5 |
+
–
/var/www/app/yiifw/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 /** |
| #6 |
+
–
/var/www/app/yiifw/web/CController.php(1164): CFilter->filter(CFilterChain) 1159 */ 1160 public function filterAccessControl($filterChain) 1161 { 1162 $filter=new CAccessControlFilter; 1163 $filter->setRules($this->accessRules()); 1164 $filter->filter($filterChain); 1165 } 1166 1167 /** 1168 * Returns a persistent page state value. 1169 * A page state is a variable that is persistent across POST requests of the same page. |
| #7 |
+
–
/var/www/app/yiifw/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 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 } |
| #8 |
+
–
/var/www/app/yiifw/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 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 } |
| #9 |
+
–
/var/www/app/yiifw/web/CController.php(293): CFilterChain->run() 288 $this->runAction($action); 289 else 290 { 291 $priorAction=$this->_action; 292 $this->_action=$action; 293 CFilterChain::create($this,$action,$filters)->run(); 294 $this->_action=$priorAction; 295 } 296 } 297 298 /** |
| #10 |
+
–
/var/www/app/yiifw/web/CController.php(267): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete")) 262 { 263 if(($parent=$this->getModule())===null) 264 $parent=Yii::app(); 265 if($parent->beforeControllerAction($this,$action)) 266 { 267 $this->runActionWithFilters($action,$this->filters()); 268 $parent->afterControllerAction($this,$action); 269 } 270 } 271 else 272 $this->missingAction($actionID); |
| #11 |
+
–
/var/www/app/yiifw/web/CWebApplication.php(276): CController->run("facturaPdf") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #12 |
+
–
/var/www/app/yiifw/web/CWebApplication.php(135): CWebApplication->runController("site/facturaPdf") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
| #13 |
+
–
/var/www/app/yiifw/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
| #14 |
+
–
/var/www/app/index.php(45): CApplication->run() 40 define("COMANDA_FONT_XLARGE", 14); 41 42 define("DB_LOCATION", 'REMOTO'); // Define si el software esta local o en la web 43 44 require_once($yii); 45 Yii::createWebApplication($config)->run(); |