/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/components/Link.php(23)
11 * @author root 12 */ 13 class Link { 14 public function getBwpPDFLink($model,$base_url=true){ 15 //echo Yii::app()->getBaseUrl()."/pdf/".$model->category->link_rewrite.DIRECTORY_SEPARATOR.$model->page_no.".pdf";exit; 16 if($base_url) 17 return Yii::app()->request->getBaseUrl(true)."/pdf/".$model->id_state."/".$model->page_no.".pdf"; 18 else { 19 return "pdf/".$model->id_state."/".$model->page_no.".pdf"; 20 } 21 } 22 public function getCPDFLink($model){ 23 $path = "cpdf".DIRECTORY_SEPARATOR.$model->id_state.DIRECTORY_SEPARATOR.$model->id_colored_pages.".pdf"; 24 if(file_exists($path)) 25 return Yii::app()->request->getBaseUrl(true)."/cpdf".DIRECTORY_SEPARATOR.$model->id_state.DIRECTORY_SEPARATOR.$model->id_colored_pages.".pdf"; 26 else{ 27 return ""; 28 } 29 } 30 31 public function getInfoLink($view){ 32 return Yii::app()->createUrl("info",array("v"=>$view)); 33 34 } 35
#0 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/views/page/c_view.php(4): Link->getCPDFLink(null) 1 <?php //echo $data->page_no;?> 2 <div class=""> 3 <div class="FloatLeft" style="width: 780px"> 4 <?php $file = $this->link->getCPDFLink($model); 5 if($file): 6 ?> 7 <!--<iframe src="https://docs.google.com/viewer?url=<?php //echo urlencode($this->link->getCPDFLink($model)); ?>&embedded=true" width="780" height="1124" style="border: none;"></iframe>--> 8 <iframe frameborder="0" style="height: 1042px; overflow:scroll; width: 100%" height="" src="<?php echo $this->link->getCPDFLink($model); ?>" ></iframe> 9 |
#1 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(119): require("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/vie...") 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/vie...", array("model" => null), true) 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(866): CBaseController->renderFile("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/vie...", array("model" => null), true) 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(779): CController->renderPartial("c_view", array("model" => null), true) 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/controllers/PageController.php(81): CController->render("c_view", array("model" => null)) 76 } 77 78 public function actionColored() { 79 $id_c = Tools::getValue("id_c"); 80 $model = ColoredPages::model()->findByPk($id_c); 81 $this->render("c_view", array("model" => $model)); 82 } 83 84 } 85 86 ?> |
#6 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/actions/CInlineAction.php(50): PageController->actionColored() 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(300): CInlineAction->runWithParams(array("r" => "page/colored", "id_c" => "1650")) 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 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 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); |
#10 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CWebApplication.php(277): CController->run("colored") 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))); |
#11 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CWebApplication.php(136): CWebApplication->runController("page/colored") 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. |
#12 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/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 /** |
#13 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |