/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/components/Tools.php(608)
596 * return star_sprite image background position based on reating 597 */ 598 599 public static function getStarRatingPosition($rating) { 600 $positions = array( 601 0 => '0px -60px', 602 1 => '0px -48px', 603 2 => '0px -36px', 604 3 => '0px -24px', 605 4 => '0px -12px', 606 5 => '0px 0px', 607 ); 608 return $positions[(int) $rating]; 609 } 610 611 static function fb_comment_count($url) { 612 613 $filecontent = file_get_contents('https://graph.facebook.com/?ids=' . $url); 614 $json = json_decode($filecontent); 615 $count = (isset($json->$url->comments)) ? $json->$url->comments : 0; 616 if ($count == 0 || !isset($count)) { 617 $count = 0; 618 } 619 return $count; 620 }
#0 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/extensions/company/views/_view.php(4): Tools::getStarRatingPosition("27.7581") 1 <?php 2 $rating = Rating::getRating($data['link_rewrite']); 3 //print_r($rating); 4 $p = Tools::getStarRatingPosition($rating['avg']); 5 $r_cnt = $rating['cnt']; 6 //echo $id_cover_image = Image::getCoverImage($data['link_rewrite']); 7 $id_cover_image = $data['id_image']; 8 9 $link_detail_page = $this->link->getCompanyLink($data["id"],$data["link_rewrite"],$data['s_link_rewrite']); |
#1 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(123): require("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...") 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } 125 126 /** 127 * Creates a widget and initializes it. 128 * This method first creates the specified widget instance. |
#2 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...", array("logged_in_id" => null, "city_name" => "Jammu", "index" => 0, "data" => array("id_listing" => "755", "company_name" => "SWAMI JI OUTDOORS", "id_city" => "304", "link_rewrite" => "SWAMI JI OUTDOORS", ...), ...), false) 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/widgets/CWidget.php(242): CBaseController->renderFile("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...", array("logged_in_id" => null, "city_name" => "Jammu", "index" => 0, "data" => array("id_listing" => "755", "company_name" => "SWAMI JI OUTDOORS", "id_city" => "304", "link_rewrite" => "SWAMI JI OUTDOORS", ...), ...), false) 237 * @see getViewFile 238 */ 239 public function render($view,$data=null,$return=false) 240 { 241 if(($viewFile=$this->getViewFile($view))!==false) 242 return $this->renderFile($viewFile,$data,$return); 243 else 244 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 245 array('{widget}'=>get_class($this), '{view}'=>$view))); 246 } 247 } |
#4 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/zii/widgets/CListView.php(244): CWidget->render("_view", array("logged_in_id" => null, "city_name" => "Jammu", "index" => 0, "data" => array("id_listing" => "755", "company_name" => "SWAMI JI OUTDOORS", "id_city" => "304", "link_rewrite" => "SWAMI JI OUTDOORS", ...), ...)) 239 { 240 $data=$this->viewData; 241 $data['index']=$i; 242 $data['data']=$item; 243 $data['widget']=$this; 244 $owner->$render($this->itemView,$data); 245 if($j++ < $n-1) 246 echo $this->separator; 247 } 248 } 249 else |
#5 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/zii/widgets/CBaseListView.php(158): CListView->renderItems() 153 protected function renderSection($matches) 154 { 155 $method='render'.$matches[1]; 156 if(method_exists($this,$method)) 157 { 158 $this->$method(); 159 $html=ob_get_contents(); 160 ob_clean(); 161 return $html; 162 } 163 else |
#6 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#7 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/zii/widgets/CBaseListView.php(141): preg_replace_callback("/{(\w+)}/", array(CListView, "renderSection"), "{pager}{items}{pager}") 136 * The rendering results will replace the corresponding placeholders in {@link template}. 137 */ 138 public function renderContent() 139 { 140 ob_start(); 141 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 142 ob_end_flush(); 143 } 144 145 /** 146 * Renders a section. |
#8 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/zii/widgets/CBaseListView.php(126): CBaseListView->renderContent() 121 { 122 $this->registerClientScript(); 123 124 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 125 126 $this->renderContent(); 127 $this->renderKeys(); 128 129 echo CHtml::closeTag($this->tagName); 130 } 131 |
#9 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(166): CBaseListView->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /** |
#10 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/extensions/company/views/list.php(22): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CSqlDataProvider, "ajaxUpdate" => false, "itemView" => "_view", "template" => "{pager}{items}{pager}", ...)) 17 <p>Showing <em><?php echo $dataProvider->totalItemCount ?></em> results for the <?php echo ucwords(str_replace("-", " ", $this->link_rewrite)); ?> in <?php echo $city_name; ?> from Cityinfo Yellow Pages</p> 18 </div> 19 <div class="lst_rt"> 20 <?php 21 $this->widget('zii.widgets.CListView', array( 22 'dataProvider' => $dataProvider, 23 'ajaxUpdate' => false, 24 'itemView' => '_view', 25 'template' => '{pager}{items}{pager}', 26 'viewData' => array('logged_in_id' => $id, 'city_name' => $city_name), 27 'pager' => array('header' => ''), |
#11 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(123): require("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...") 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } 125 126 /** 127 * Creates a widget and initializes it. 128 * This method first creates the specified widget instance. |
#12 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...", array("dataProvider" => CSqlDataProvider, "city_name" => "Jammu"), false) 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); |
#13 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/widgets/CWidget.php(242): CBaseController->renderFile("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/ext...", array("dataProvider" => CSqlDataProvider, "city_name" => "Jammu"), false) 237 * @see getViewFile 238 */ 239 public function render($view,$data=null,$return=false) 240 { 241 if(($viewFile=$this->getViewFile($view))!==false) 242 return $this->renderFile($viewFile,$data,$return); 243 else 244 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 245 array('{widget}'=>get_class($this), '{view}'=>$view))); 246 } 247 } |
#14 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/extensions/company/ShowCompany.php(106): CWidget->render("list", array("dataProvider" => CSqlDataProvider, "city_name" => "Jammu")) 101 $city_name = ""; 102 if(isset($_GET['city'])){ 103 $city_name = $_GET['city']; 104 } 105 106 $this->render($this->view, array('dataProvider' => $dataProvider,'city_name'=>$city_name)); 107 return parent::renderContent(); 108 } 109 110 111 |
#15 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/zii/widgets/CPortlet.php(95): ShowCompany->renderContent() 090 /** 091 * Renders the content of the portlet. 092 */ 093 public function run() 094 { 095 $this->renderContent(); 096 $content=ob_get_clean(); 097 if($this->hideOnEmpty && trim($content)==='') 098 return; 099 echo $this->_openTag; 100 echo $content; |
#16 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(166): CPortlet->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /** |
#17 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/views/product/listing.php(6): CBaseController->widget("ext.company.ShowCompany", array("link_rewrite" => "advertising", "id_city" => "304")) 1 2 <?php $this->widget('ext.sidelinks.ShowSideLinks',array("id_category"=>$id_category,"s_link_rewrite"=>$link_rewrite,'id_city'=>$id_city)); ?> 3 4 <?php 5 6 $this->widget('ext.company.ShowCompany',array("link_rewrite"=>$link_rewrite,'id_city'=>$id_city));?> |
#18 |
+
–
/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 } |
#19 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/vie...", array("link_rewrite" => "advertising", "id_category" => "5", "id_city" => "304", "op" => "all"), 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); |
#20 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(866): CBaseController->renderFile("/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/vie...", array("link_rewrite" => "advertising", "id_category" => "5", "id_city" => "304", "op" => "all"), 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 |
#21 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(779): CController->renderPartial("listing", array("link_rewrite" => "advertising", "id_category" => "5", "id_city" => "304", "op" => "all"), 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 |
#22 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/protected/controllers/ProductController.php(40): CController->render("listing", array("link_rewrite" => "advertising", "id_category" => "5", "id_city" => "304", "op" => "all")) 35 36 $this->cs->registerMetaTag("$name in $cityname Find $name Phone Numbers, Addresses, Best Deals, Latest Reviews & Ratings. Visit cityinfoyellowpages.co.in for $name in $cityname","decription"); 37 $this->cs->registerMetaTag("$name in $cityname, $name $cityname, $cityname $name, list of $name in $cityname, $name list","keywords"); 38 39 $this->breadcrumbs = $breadc->getListingBreadcrumbs($res); 40 $this->render("listing", array("link_rewrite" => $link_rewrite, "id_category" => $id_cat, 'id_city' => $id_city, 'op' => $op)); 41 } 42 43 // public function actioncCatListing() { 44 // $link_rewrite = Tools::getValue("link_rewrite"); 45 // $id_city = Tools::getValue("id_city"); |
#23 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/actions/CInlineAction.php(50): ProductController->actionListing() 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 } |
#24 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CController.php(300): CInlineAction->runWithParams(array("r" => "product/listing", "link_rewrite" => "advertising", "id_city" => "304", "city" => "Jammu", ...)) 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; |
#25 |
+
–
/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(); |
#26 |
+
–
/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); |
#27 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CWebApplication.php(277): CController->run("listing") 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))); |
#28 |
+
–
/var/www/vhosts/cityinfoyellowpages.co.in/httpdocs/framework/web/CWebApplication.php(136): CWebApplication->runController("product/listing") 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. |
#29 |
+
–
/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 /** |
#30 |
+
–
/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(); |