/home/www/uznaykak.ru/protected/extensions/my/faktBB.php(12)
01 <?php 02 03 class faktBB extends CWidget { 04 05 public $text = false; 06 public $result = false; 07 public $type = false; 08 09 public function init() { 10 if ($this->text) { 11 $format = explode("?", $this->text); 12 if ($format[0] and $format[1]) { 13 if ($this->type){ 14 $this->result = $format[0]; 15 }else{ 16 $this->result = "<b>" . $format[0] . "?</b> " . $format[1]; 17 } 18 } 19 } 20 } 21 22 public function run() { 23 if ($this->result) { 24 echo $this->result;
#0 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3081): faktBB->init() 3076 require($_viewFile_); 3077 } 3078 public function createWidget($className,$properties=array()) 3079 { 3080 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 3081 $widget->init(); 3082 return $widget; 3083 } 3084 public function widget($className,$properties=array(),$captureOutput=false) 3085 { 3086 if($captureOutput) |
#1 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3096): CBaseController->createWidget("application.extensions.my.faktBB", array("text" => "А знаешь ли ты, что вместо изумруда ...")) 3091 $widget->run(); 3092 return ob_get_clean(); 3093 } 3094 else 3095 { 3096 $widget=$this->createWidget($className,$properties); 3097 $widget->run(); 3098 return $widget; 3099 } 3100 } 3101 public function beginWidget($className,$properties=array()) |
#2 |
+
–
/home/www/uznaykak.ru/protected/views/site/fakts.php(54): CBaseController->widget("application.extensions.my.faktBB", array("text" => "А знаешь ли ты, что вместо изумруда ...")) 49 <?php foreach ($list as $li) { ?> 50 <div class="b-fakt"> 51 <div class="fakt-cont"> 52 <div class="date"><?php echo date('d.m.Y', $li['pub_p']); ?></div> 53 <div class="text"> 54 <?php $this->widget('application.extensions.my.faktBB', array('text' => $li['fakt'])); ?> 55 </div><!--end text--> 56 </div><!--end fakt-cont--> 57 <ul class="social-like"> 58 <li style="width: 150px;"> 59 <?php |
#3 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3072): require("/home/www/uznaykak.ru/protected/views/site/fakts.php") 3067 $data=$_data_; 3068 if($_return_) 3069 { 3070 ob_start(); 3071 ob_implicit_flush(false); 3072 require($_viewFile_); 3073 return ob_get_clean(); 3074 } 3075 else 3076 require($_viewFile_); 3077 } |
#4 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3051): CBaseController->renderInternal("/home/www/uznaykak.ru/protected/views/site/fakts.php", array("posts" => array(array("id_p" => "599", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "621", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "623", "id_cat" => "42", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "622", "id_cat" => "40", "id_f_c" => null, "id_s_c" => "0", ...), ...), "category" => array(array("id" => "2", "name" => "Дети", "title" => "Дети", "eng_title" => "deti", ...), array("id" => "3", "name" => "Спорт", "title" => null, "eng_title" => "sport", ...), array("id" => "4", "name" => "Отношения", "title" => null, "eng_title" => "otnosheniya", ...), array("id" => "6", "name" => "Красота и здоровье", "title" => "Как стильно выглядеть, одеваться. С...", "eng_title" => "krasota_i_zdorov_e", ...), ...), "list" => array(Posts, Posts, Posts, Posts, ...), "pages" => CPagination, ...), true) 3046 { 3047 $widgetCount=count($this->_widgetStack); 3048 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3049 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3050 else 3051 $content=$this->renderInternal($viewFile,$data,$return); 3052 if(count($this->_widgetStack)===$widgetCount) 3053 return $content; 3054 else 3055 { 3056 $widget=end($this->_widgetStack); |
#5 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3475): CBaseController->renderFile("/home/www/uznaykak.ru/protected/views/site/fakts.php", array("posts" => array(array("id_p" => "599", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "621", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "623", "id_cat" => "42", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "622", "id_cat" => "40", "id_f_c" => null, "id_s_c" => "0", ...), ...), "category" => array(array("id" => "2", "name" => "Дети", "title" => "Дети", "eng_title" => "deti", ...), array("id" => "3", "name" => "Спорт", "title" => null, "eng_title" => "sport", ...), array("id" => "4", "name" => "Отношения", "title" => null, "eng_title" => "otnosheniya", ...), array("id" => "6", "name" => "Красота и здоровье", "title" => "Как стильно выглядеть, одеваться. С...", "eng_title" => "krasota_i_zdorov_e", ...), ...), "list" => array(Posts, Posts, Posts, Posts, ...), "pages" => CPagination, ...), true) 3470 } 3471 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3472 { 3473 if(($viewFile=$this->getViewFile($view))!==false) 3474 { 3475 $output=$this->renderFile($viewFile,$data,true); 3476 if($processOutput) 3477 $output=$this->processOutput($output); 3478 if($return) 3479 return $output; 3480 else |
#6 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3443): CController->renderPartial("fakts", array("posts" => array(array("id_p" => "599", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "621", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "623", "id_cat" => "42", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "622", "id_cat" => "40", "id_f_c" => null, "id_s_c" => "0", ...), ...), "category" => array(array("id" => "2", "name" => "Дети", "title" => "Дети", "eng_title" => "deti", ...), array("id" => "3", "name" => "Спорт", "title" => null, "eng_title" => "sport", ...), array("id" => "4", "name" => "Отношения", "title" => null, "eng_title" => "otnosheniya", ...), array("id" => "6", "name" => "Красота и здоровье", "title" => "Как стильно выглядеть, одеваться. С...", "eng_title" => "krasota_i_zdorov_e", ...), ...), "list" => array(Posts, Posts, Posts, Posts, ...), "pages" => CPagination, ...), true) 3438 } 3439 public function render($view,$data=null,$return=false) 3440 { 3441 if($this->beforeRender($view)) 3442 { 3443 $output=$this->renderPartial($view,$data,true); 3444 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3445 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3446 $this->afterRender($view,$output); 3447 $output=$this->processOutput($output); 3448 if($return) |
#7 |
+
–
/home/www/uznaykak.ru/protected/controllers/SiteController.php(156): CController->render("fakts", array("posts" => array(array("id_p" => "599", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "621", "id_cat" => "45", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "623", "id_cat" => "42", "id_f_c" => null, "id_s_c" => "0", ...), array("id_p" => "622", "id_cat" => "40", "id_f_c" => null, "id_s_c" => "0", ...), ...), "category" => array(array("id" => "2", "name" => "Дети", "title" => "Дети", "eng_title" => "deti", ...), array("id" => "3", "name" => "Спорт", "title" => null, "eng_title" => "sport", ...), array("id" => "4", "name" => "Отношения", "title" => null, "eng_title" => "otnosheniya", ...), array("id" => "6", "name" => "Красота и здоровье", "title" => "Как стильно выглядеть, одеваться. С...", "eng_title" => "krasota_i_zdorov_e", ...), ...), "list" => array(Posts, Posts, Posts, Posts, ...), "pages" => CPagination, ...)) 151 'posts' => $model->getPosts(), 152 'category' => $category->getPublicCategory('category'), 153 'list' => $result['list'], 154 'pages' => $result['pages'], 155 'faktForDay' => $model->getFakt(), 156 )); 157 } 158 159 public function actionAllFakt($id) { 160 if (is_numeric($id)) { 161 $id = (int) $id; |
#8 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3720): SiteController->actionFakts() 3715 $controller=$this->getController(); 3716 $method=new ReflectionMethod($controller, $methodName); 3717 if($method->getNumberOfParameters()>0) 3718 return $this->runWithParamsInternal($controller, $method, $params); 3719 else 3720 return $controller->$methodName(); 3721 } 3722 } 3723 class CWebUser extends CApplicationComponent implements IWebUser 3724 { 3725 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#9 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3223): CInlineAction->runWithParams(array()) 3218 { 3219 $priorAction=$this->_action; 3220 $this->_action=$action; 3221 if($this->beforeAction($action)) 3222 { 3223 if($action->runWithParams($this->getActionParams())===false) 3224 $this->invalidActionParams($action); 3225 else 3226 $this->afterAction($action); 3227 } 3228 $this->_action=$priorAction; |
#10 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6118): CController->runAction(CInlineAction) 6113 { 6114 $filter=$this->itemAt($this->filterIndex++); 6115 $filter->filter($this); 6116 } 6117 else 6118 $this->controller->runAction($this->action); 6119 } 6120 } 6121 class CFilter extends CComponent implements IFilter 6122 { 6123 public function filter($filterChain) |
#11 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6127): CFilterChain->run() 6122 { 6123 public function filter($filterChain) 6124 { 6125 if($this->preFilter($filterChain)) 6126 { 6127 $filterChain->run(); 6128 $this->postFilter($filterChain); 6129 } 6130 } 6131 public function init() 6132 { |
#12 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6115): CFilter->filter(CFilterChain) 6110 public function run() 6111 { 6112 if($this->offsetExists($this->filterIndex)) 6113 { 6114 $filter=$this->itemAt($this->filterIndex++); 6115 $filter->filter($this); 6116 } 6117 else 6118 $this->controller->runAction($this->action); 6119 } 6120 } |
#13 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6127): CFilterChain->run() 6122 { 6123 public function filter($filterChain) 6124 { 6125 if($this->preFilter($filterChain)) 6126 { 6127 $filterChain->run(); 6128 $this->postFilter($filterChain); 6129 } 6130 } 6131 public function init() 6132 { |
#14 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3601): CFilter->filter(CFilterChain) 3596 } 3597 public function filterAccessControl($filterChain) 3598 { 3599 $filter=new CAccessControlFilter; 3600 $filter->setRules($this->accessRules()); 3601 $filter->filter($filterChain); 3602 } 3603 public function paginate($itemCount,$pageSize=null,$pageVar=null) 3604 { 3605 $pages=new CPagination($itemCount); 3606 if($pageSize!==null) |
#15 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6160): CController->filterAccessControl(CFilterChain) 6155 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6156 } 6157 public function filter($filterChain) 6158 { 6159 $method='filter'.$this->name; 6160 $filterChain->controller->$method($filterChain); 6161 } 6162 } 6163 class CAccessControlFilter extends CFilter 6164 { 6165 public $message; |
#16 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(6115): CInlineFilter->filter(CFilterChain) 6110 public function run() 6111 { 6112 if($this->offsetExists($this->filterIndex)) 6113 { 6114 $filter=$this->itemAt($this->filterIndex++); 6115 $filter->filter($this); 6116 } 6117 else 6118 $this->controller->runAction($this->action); 6119 } 6120 } |
#17 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3213): CFilterChain->run() 3208 $this->runAction($action); 3209 else 3210 { 3211 $priorAction=$this->_action; 3212 $this->_action=$action; 3213 CFilterChain::create($this,$action,$filters)->run(); 3214 $this->_action=$priorAction; 3215 } 3216 } 3217 public function runAction($action) 3218 { |
#18 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(3198): CController->runActionWithFilters(CInlineAction, array("accessControl", array("application.components.YXssFilter", "clean" => "*", "tags" => "strict", "actions" => "all"))) 3193 { 3194 if(($parent=$this->getModule())===null) 3195 $parent=Yii::app(); 3196 if($parent->beforeControllerAction($this,$action)) 3197 { 3198 $this->runActionWithFilters($action,$this->filters()); 3199 $parent->afterControllerAction($this,$action); 3200 } 3201 } 3202 else 3203 $this->missingAction($actionID); |
#19 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(1686): CController->run("fakts") 1681 { 1682 list($controller,$actionID)=$ca; 1683 $oldController=$this->_controller; 1684 $this->_controller=$controller; 1685 $controller->init(); 1686 $controller->run($actionID); 1687 $this->_controller=$oldController; 1688 } 1689 else 1690 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1691 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(1606): CWebApplication->runController("site/fakts") 1601 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1602 $_GET[$name]=$value; 1603 } 1604 else 1605 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1606 $this->runController($route); 1607 } 1608 protected function registerCoreComponents() 1609 { 1610 parent::registerCoreComponents(); 1611 $components=array( |
#21 |
+
–
/home/www/uznaykak.ru/framework/yiilite.php(1135): CWebApplication->processRequest() 1130 } 1131 public function run() 1132 { 1133 if($this->hasEventHandler('onBeginRequest')) 1134 $this->onBeginRequest(new CEvent($this)); 1135 $this->processRequest(); 1136 if($this->hasEventHandler('onEndRequest')) 1137 $this->onEndRequest(new CEvent($this)); 1138 } 1139 public function end($status=0, $exit=true) 1140 { |
#22 |
+
–
/home/www/uznaykak.ru/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |