/home/GIR/buggy-motor.ru/protected/controllers/CartController.php(6)
01 <?php 02 03 include_once Yii::app()->basePath . '/modules/catalog/models/CatCategory.php'; 04 include_once Yii::app()->basePath . '/modules/catalog/models/CatItem.php'; 05 include_once Yii::app()->basePath . '/modules/catalog/models/CatItemsToCat.php'; 06 session_start(); 07 08 if (!isset($_SESSION['cart'])) { 09 $_SESSION['cart'] = array(); 10 } 11 class CartController extends Controller 12 { 13 14 /** 15 * This is the default 'index' action that is invoked 16 * when an action is not explicitly requested by users. 17 */ 18
#0 |
+
–
/home/GIR/buggy-motor.ru/protected/controllers/CartController.php(6): session_start() 01 <?php 02 03 include_once Yii::app()->basePath . '/modules/catalog/models/CatCategory.php'; 04 include_once Yii::app()->basePath . '/modules/catalog/models/CatItem.php'; 05 include_once Yii::app()->basePath . '/modules/catalog/models/CatItemsToCat.php'; 06 session_start(); 07 08 if (!isset($_SESSION['cart'])) { 09 $_SESSION['cart'] = array(); 10 } 11 class CartController extends Controller |
#1 |
+
–
/usr/share/php/framework/web/CWebApplication.php(354): require("/home/GIR/buggy-motor.ru/protected/controllers/CartController.ph...") 349 $className=$owner->controllerNamespace.'\\'.str_replace('/','\\',$controllerID).$className; 350 351 if(is_file($classFile)) 352 { 353 if(!class_exists($className,false)) 354 require($classFile); 355 if(class_exists($className,false) && is_subclass_of($className,'CController')) 356 { 357 $id[0]=strtolower($id[0]); 358 return array( 359 new $className($controllerID.$id,$owner===$this?null:$owner), |
#2 |
+
–
/usr/share/php/framework/web/CWebApplication.php(276): CWebApplication->createController("") 271 * @param string $route the route of the current request. See {@link createController} for more details. 272 * @throws CHttpException if the controller could not be created. 273 */ 274 public function runController($route) 275 { 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); |
#3 |
+
–
/usr/share/php/framework/web/CWebApplication.php(141): CWebApplication->runController("cart") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#4 |
+
–
/usr/share/php/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#5 |
+
–
/home/GIR/buggy-motor.ru/index.php(14): CApplication->run() 09 defined('YII_DEBUG') or define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |