/var/www/vhosts/znuweb/framework/YiiBase.php(220)
208 { 209 unset($args[0]); 210 $class=new ReflectionClass($type); 211 // Note: ReflectionClass::newInstanceArgs() is available for PHP 5.1.3+ 212 // $object=$class->newInstanceArgs($args); 213 $object=call_user_func_array(array($class,'newInstance'),$args); 214 } 215 } 216 else 217 $object=new $type; 218 219 foreach($config as $key=>$value) 220 $object->$key=$value; 221 222 return $object; 223 } 224 225 /** 226 * Imports a class or a directory. 227 * 228 * Importing a class is like including the corresponding class file. 229 * The main difference is that importing a class is much lighter because it only 230 * includes the class file when the class is referenced the first time. 231 * 232 * Importing a directory is equivalent to adding a directory into the PHP include path.
#0 |
+
–
/var/www/vhosts/znuweb/framework/YiiBase.php(220): CComponent->__set("enablePrettyUrl", true) 215 } 216 else 217 $object=new $type; 218 219 foreach($config as $key=>$value) 220 $object->$key=$value; 221 222 return $object; 223 } 224 225 /** |
#1 |
+
–
/var/www/vhosts/znuweb/framework/base/CModule.php(386): YiiBase::createComponent(array("class" => "CUrlManager", "enablePrettyUrl" => true, "showScriptName" => false, "rules" => array("www.tt.ir/118" => "http://contacts.ir"))) 381 $config=$this->_componentConfig[$id]; 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } |
#2 |
+
–
/var/www/vhosts/znuweb/framework/base/CApplication.php(522): CModule->getComponent("urlManager") 517 * Returns the URL manager component. 518 * @return CUrlManager the URL manager component 519 */ 520 public function getUrlManager() 521 { 522 return $this->getComponent('urlManager'); 523 } 524 525 /** 526 * @return CController the currently active controller. Null is returned in this base class. 527 * @since 1.1.8 |
#3 |
+
–
/var/www/vhosts/znuweb/framework/web/CWebApplication.php(140): CApplication->getUrlManager() 135 $route=$this->catchAllRequest[0]; 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. |
#4 |
+
–
/var/www/vhosts/znuweb/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#5 |
+
–
/var/www/vhosts/znuweb/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(); |