/home/magnustech/domains/magnus-tech.pl/public_html/protected/myWidgets/MenuWidget.php(16)
04 05 public $menu = array(); 06 public $menuId; 07 08 public function init() { 09 // jest to metoda wołana przez CController::beginWidget() 10 // print_r($this->menu); 11 echo '<ul id="'.$this->menuId.'"> 12 '; 13 if (count($this->menu) > 0) 14 foreach ($this->menu as $key => $value) { 15 echo '<li><a href="' . $value['url'] . '" ' . ($value['active'] == true ? 'class="active"' : '') . ' >' . $value['title'] . '</a>'; 16 if (count($value['subpage']) > 0) { 17 echo $this->showSubmenu($value['subpage']); 18 } 19 echo '</li> 20 '; 21 } 22 23 echo '</ul> 24 '; 25 } 26 27 private function showSubmenu($array = array()) { 28 $out = '<ul>
#0 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(148): MenuWidget->init() 143 * @return CWidget the fully initialized widget instance. 144 */ 145 public function createWidget($className,$properties=array()) 146 { 147 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 148 $widget->init(); 149 return $widget; 150 } 151 152 /** 153 * Creates a widget and executes it. |
#1 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(173): CBaseController->createWidget("application.myWidgets.MenuWidget", array("menu" => array(array("alias" => "/", "title" => "Start", "url" => "/", "active" => false, ...), array("alias" => "firma", "title" => "Firma", "url" => "firma", "active" => false, ...), array("alias" => "produkty", "title" => "Produkty", "url" => "produkty", "active" => false, ...), array("alias" => "centrum-wiedzy", "title" => "Centrum wiedzy", "url" => "centrum-wiedzy", "active" => false, ...), ...), "menuId" => "mainMenu")) 168 $widget->run(); 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 |
#2 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/themes/classic/views/layouts/main.php(50): CBaseController->widget("application.myWidgets.MenuWidget", array("menu" => array(array("alias" => "/", "title" => "Start", "url" => "/", "active" => false, ...), array("alias" => "firma", "title" => "Firma", "url" => "firma", "active" => false, ...), array("alias" => "produkty", "title" => "Produkty", "url" => "produkty", "active" => false, ...), array("alias" => "centrum-wiedzy", "title" => "Centrum wiedzy", "url" => "centrum-wiedzy", "active" => false, ...), ...), "menuId" => "mainMenu")) 45 <a class="menuBtn"></a> 46 <?php 47 $this->widget('application.myWidgets.MenuWidget' 48 , array( 49 'menu' => $this->menu, 50 'menuId' => 'mainMenu' 51 ) 52 ); 53 ?> 54 <div id="searchHolder"> 55 <a id="searchTrigger"></a> |
#3 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(127): require("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#4 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...", array("content" => "<div style="clear:both"></div>
<div class="mHolder header h2">
..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#5 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/widgets/CContentDecorator.php(77): CBaseController->renderFile("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...", array("content" => "<div style="clear:both"></div>
<div class="mHolder header h2">
..."), true) 72 $viewFile=$owner->getViewFile($this->view); 73 if($viewFile!==false) 74 { 75 $data=$this->data; 76 $data['content']=$content; 77 return $owner->renderFile($viewFile,$data,true); 78 } 79 else 80 return $content; 81 } 82 } |
#6 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/widgets/CContentDecorator.php(55): CContentDecorator->decorate("<div style="clear:both"></div>
<div class="mHolder header h2">
...") 50 * This method decorates the output with the specified {@link view}. 51 * @param string $output the captured output to be processed 52 */ 53 public function processOutput($output) 54 { 55 $output=$this->decorate($output); 56 parent::processOutput($output); 57 } 58 59 /** 60 * Decorates the content by rendering a view and embedding the content in it. |
#7 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput("<div style="clear:both"></div>
<div class="mHolder header h2">
...") 40 * This method stops output buffering and processes the captured output. 41 */ 42 public function run() 43 { 44 $output=ob_get_clean(); 45 $this->processOutput($output); 46 } 47 48 /** 49 * Processes the captured output. 50 * |
#8 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(207): COutputProcessor->run() 202 */ 203 public function endWidget($id='') 204 { 205 if(($widget=array_pop($this->_widgetStack))!==null) 206 { 207 $widget->run(); 208 return $widget; 209 } 210 else 211 throw new CException(Yii::t('yii','{controller} has an extra endWidget({id}) call in its view.', 212 array('{controller}'=>get_class($this),'{id}'=>$id))); |
#9 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(301): CBaseController->endWidget("CContentDecorator") 296 * Ends the rendering of content. 297 * @see beginContent 298 */ 299 public function endContent() 300 { 301 $this->endWidget('CContentDecorator'); 302 } 303 } |
#10 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/themes/classic/views/layouts/column2.php(36): CBaseController->endContent() 31 <?php echo $content; ?> 32 <div class="clear"></div> 33 </div> 34 </div> 35 <div class="clear"></div> 36 <?php $this->endContent(); ?> |
#11 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(127): require("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#12 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...", array("content" => "<div class="row-fluid">
<div class="contentLeft span3"></div..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#13 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CController.php(785): CBaseController->renderFile("/home/magnustech/domains/magnus-tech.pl/public_html/themes/class...", array("content" => "<div class="row-fluid">
<div class="contentLeft span3"></div..."), true) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 789 $output=$this->processOutput($output); 790 |
#14 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/protected/controllers/SiteController.php(554): CController->render("pageText") 549 * strony tekstowe 550 */ 551 public function actionTypeText() { 552 553 554 $this->render('pageText'); 555 } 556 557 /** 558 * lista stron tekstowych 559 */ |
#15 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/protected/controllers/SiteController.php(137): SiteController->actionTypeText() 132 case 18: 133 $this->actionProductDetail(); 134 break; 135 default: 136 137 $this->actionTypeText(); 138 139 break; 140 } 141 } 142 } else { |
#16 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/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 } |
#17 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CController.php(309): CInlineAction->runWithParams(array("page" => "zapytania")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#18 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#19 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#20 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CWebApplication.php(283): CController->run("index") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#21 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/web/CWebApplication.php(142): CWebApplication->runController("site/index") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#22 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/framework/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 /** |
#23 |
+
–
/home/magnustech/domains/magnus-tech.pl/public_html/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(); |