|
#0 |
unknown(0): CApplication->handleError(2, "strtotime(): It is not safe to rely on the system's timezone set...", "/home/zikbay/public_html/protected/modules/Ads/components/views/...", 29, ...)
|
|
#1 |
+
–
/home/zikbay/public_html/protected/modules/Ads/components/views/LastestAds.php(29): strtotime("2017-05-29 14:57:04")
24 <?php echo getFirstWordsFromString($ad->title, 3); ?>
25 </a>
26 </p>
27 <p class="short-desc"><?php echo getFirstWordsFromString(strip_tags($ad->description),10); ?></p>
28 <p class="price"><?php if (isset($ad->arrNotPaymentPriceOptions[$ad->opt_price])) echo $ad->arrNotPaymentPriceOptions[$ad->opt_price]; else echo AdsSettings::CURRENCY.' '.$ad->price; ?></p>
29 <p class="hours"><?php if (!empty($ad->create_time) && $ad->create_time != "0000-00-00 00:00:00") echo getInterval(strtotime($ad->create_time)); ?></p>
30 </div>
31 </li>
32 <?php endforeach; ?>
33 </ul> |
|
#2 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(123): require("/home/zikbay/public_html/protected/modules/Ads/components/views/...")
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.
|
|
#3 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(88): CBaseController-> renderInternal("/home/zikbay/public_html/protected/modules/Ads/components/views/...", array("lastestAds" => array(Annonce, Annonce, Annonce)), 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);
|
|
#4 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/widgets/CWidget.php(240): CBaseController-> renderFile("/home/zikbay/public_html/protected/modules/Ads/components/views/...", array("lastestAds" => array(Annonce, Annonce, Annonce)), false)
235 * @see getViewFile
236 */
237 public function render($view,$data=null,$return=false)
238 {
239 if(($viewFile=$this->getViewFile($view))!==false)
240 return $this->renderFile($viewFile,$data,$return);
241 else
242 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".',
243 array('{widget}'=>get_class($this), '{view}'=>$view)));
244 }
245 } |
|
#5 |
+
–
/home/zikbay/public_html/protected/modules/Ads/components/LastestAds.php(18): CWidget-> render("LastestAds", array("lastestAds" => array(Annonce, Annonce, Annonce)))
13 $criteria->addCondition("area = '{$this->selectedLocation}'");
14 $criteria->order = "create_time DESC";
15 $criteria->limit = intval($this->limit);
16 $lastestAds = Annonce::model()->findAll($criteria);
17 $this->render('LastestAds',
18 array('lastestAds'=>$lastestAds));
19 }
20 } |
|
#6 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(166): LastestAds-> 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 /**
|
|
#7 |
+
–
/home/zikbay/public_html/themes/classified/views/site/home.php(23): CBaseController-> widget("Ads.components.LastestAds", array("selectedLocation" => ""))
18 </div>
19 <p class="title"><strong>New ads</strong></p>
20 <div class="box-aside">
21 <?php //if (intval(MapSettings::DISPLAY_MAP_HOMEPAGE)==1) $this->widget('HomePageGoogleMap',array('selectedLocation'=>$this->get('location',''),'mapMarkerLimit'=>MapSettings::MAP_MARKER)); ?>
22 <?php if(trim(AdsSettings::AREA_LIST)!='') $this->widget('HomePageLocationSelector',array('selectedLocation'=>$this->get('location',''))); ?>
23 <?php $this->widget('Ads.components.LastestAds',array('selectedLocation'=>$this->get('location',''))); ?>
24 <p class="view-all"><a href="<?php $arrAllNewAdsParam = array(); if($this->get('location','')!='') $arrAllNewAdsParam['location'] = $this->get('location',''); echo $this->createUrl('/Ads/ad/listByArea',$arrAllNewAdsParam); ?>">All new ads</a></p>
25 </div>
26 </div>
27 <div class="clear"></div>
28 </div>
|
|
#8 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(119): require("/home/zikbay/public_html/themes/classified/views/site/home.php")
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 }
|
|
#9 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(88): CBaseController-> renderInternal("/home/zikbay/public_html/themes/classified/views/site/home.php", 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);
|
|
#10 |
+
–
/home/zikbay/public_html/protected/modules/Core/extensions/web/FController.php(101): CBaseController-> renderFile("/home/zikbay/public_html/themes/classified/views/site/home.php", null, true)
096
097 public function renderFile($viewFile,$data=null,$return=false)
098 {
099 //Track the current view file so the InlineViewWidget knows which view it belong to
100 $this->CurrentViewFile = $viewFile;
101 return parent::renderFile($viewFile, $data, $return);
102 }
103
104 /**
105 * Get message of current page and also previous page
106 *
|
|
#11 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(866): FController-> renderFile("/home/zikbay/public_html/themes/classified/views/site/home.php", 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
|
|
#12 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(779): CController-> renderPartial("home", 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
|
|
#13 |
+
–
/home/zikbay/public_html/protected/controllers/SiteController.php(96): CController-> render("home")
091 }
092 }
093
094 $this->pageTitle = Settings::SITE_NAME;
095 Yii::app()->user->setState('location',$this->get('location',''),'');
096 $this->render('home');
097 }
098
099 /**
100 * Declares class-based actions.
101 */
|
|
#14 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/actions/CInlineAction.php(50): SiteController-> actionIndex()
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 }
|
|
#15 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(300): CInlineAction-> runWithParams(array())
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;
|
|
#16 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/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();
|
|
#17 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/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);
|
|
#18 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(328): CController-> run("index")
323 {
324 list($controller,$actionID)=$ca;
325 $oldController=$this->_controller;
326 $this->_controller=$controller;
327 $controller->init();
328 $controller->run($actionID);
329 $this->_controller=$oldController;
330 }
331 else
332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
333 array('{route}'=>$route===''?$this->defaultController:$route)));
|
|
#19 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(121): CWebApplication-> runController("site/index")
116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
117 $_GET[$name]=$value;
118 }
119 else
120 $route=$this->getUrlManager()->parseUrl($this->getRequest());
121 $this->runController($route);
122 }
123
124 /**
125 * Registers the core application components.
126 * This method overrides the parent implementation by registering additional core components.
|
|
#20 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication-> processRequest()
150 */
151 public function run()
152 {
153 if($this->hasEventHandler('onBeginRequest'))
154 $this->onBeginRequest(new CEvent($this));
155 $this->processRequest();
156 if($this->hasEventHandler('onEndRequest'))
157 $this->onEndRequest(new CEvent($this));
158 }
159
160 /**
|
|
#21 |
+
–
/home/zikbay/public_html/index.php(25): CApplication-> run()
20 )
21 {
22 require_once(dirname(__FILE__).'/protected/modules/install/install.php');
23 }else{
24 require_once($yii);
25 Yii::createWebApplication($config)->run();
26 } |