/home/mitcarec/yii/framework/YiiBase.php(399)
387 /** 388 * Class autoload loader. 389 * This method is provided to be invoked within an __autoload() magic method. 390 * @param string $className class name 391 * @return boolean whether the class has been loaded successfully 392 */ 393 public static function autoload($className) 394 { 395 // use include so that the error PHP file may appear 396 if(isset(self::$classMap[$className])) 397 include(self::$classMap[$className]); 398 else if(isset(self::$_coreClasses[$className])) 399 include(YII_PATH.self::$_coreClasses[$className]); 400 else 401 { 402 // include class file relying on include_path 403 if(strpos($className,'\\')===false) // class without namespace 404 { 405 if(self::$enableIncludePath===false) 406 { 407 foreach(self::$_includePaths as $path) 408 { 409 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php'; 410 if(is_file($classFile)) 411 {
#0 |
+
–
/home/mitcarec/yii/framework/YiiBase.php(399): include() 394 { 395 // use include so that the error PHP file may appear 396 if(isset(self::$classMap[$className])) 397 include(self::$classMap[$className]); 398 else if(isset(self::$_coreClasses[$className])) 399 include(YII_PATH.self::$_coreClasses[$className]); 400 else 401 { 402 // include class file relying on include_path 403 if(strpos($className,'\\')===false) // class without namespace 404 { |
#1 |
+
–
/home/mitcarec/yii/framework/YiiBase.php(298): YiiBase::autoload("CMysqlSchema") 293 array('{alias}'=>$namespace))); 294 } 295 296 if(($pos=strrpos($alias,'.'))===false) // a simple class name 297 { 298 if($forceInclude && self::autoload($alias)) 299 self::$_imports[$alias]=$alias; 300 return $alias; 301 } 302 303 $className=(string)substr($alias,$pos+1); |
#2 |
+
–
/home/mitcarec/yii/framework/YiiBase.php(198): YiiBase::import("CMysqlSchema", true) 193 } 194 else 195 throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.')); 196 197 if(!class_exists($type,false)) 198 $type=Yii::import($type,true); 199 200 if(($n=func_num_args())>1) 201 { 202 $args=func_get_args(); 203 if($n===2) |
#3 |
+
–
/home/mitcarec/yii/framework/db/CDbConnection.php(510): YiiBase::createComponent(array(), CDbConnection) 505 return $this->_schema; 506 else 507 { 508 $driver=$this->getDriverName(); 509 if(isset($this->driverMap[$driver])) 510 return $this->_schema=Yii::createComponent($this->driverMap[$driver], $this); 511 else 512 throw new CDbException(Yii::t('yii','CDbConnection does not support reading schema for {driver} database.', 513 array('{driver}'=>$driver))); 514 } 515 } |
#4 |
+
–
/home/mitcarec/yii/framework/db/ar/CActiveRecord.php(2262): CDbConnection->getSchema() 2257 public function __construct($model) 2258 { 2259 $this->_model=$model; 2260 2261 $tableName=$model->tableName(); 2262 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2263 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2264 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2265 if($table->primaryKey===null) 2266 { 2267 $table->primaryKey=$model->primaryKey(); |
#5 |
+
–
/home/mitcarec/yii/framework/db/ar/CActiveRecord.php(383): CActiveRecordMetaData->__construct(Member) 378 if(isset(self::$_models[$className])) 379 return self::$_models[$className]; 380 else 381 { 382 $model=self::$_models[$className]=new $className(null); 383 $model->_md=new CActiveRecordMetaData($model); 384 $model->attachBehaviors($model->behaviors()); 385 return $model; 386 } 387 } 388 |
#6 |
+
–
/home/mitcarec/yii/framework/db/ar/CActiveRecord.php(398): CActiveRecord::model("Member") 393 public function getMetaData() 394 { 395 if($this->_md!==null) 396 return $this->_md; 397 else 398 return $this->_md=self::model(get_class($this))->_md; 399 } 400 401 /** 402 * Refreshes the meta data for this AR class. 403 * By calling this method, this AR class will regenerate the meta data needed. |
#7 |
+
–
/home/mitcarec/yii/framework/db/ar/CActiveRecord.php(78): CActiveRecord->getMetaData() 73 if($scenario===null) // internally used by populateRecord() and model() 74 return; 75 76 $this->setScenario($scenario); 77 $this->setIsNewRecord(true); 78 $this->_attributes=$this->getMetaData()->attributeDefaults; 79 80 $this->init(); 81 82 $this->attachBehaviors($this->behaviors()); 83 $this->afterConstruct(); |
#8 |
+
–
/home/mitcarec/protected/euromaster/protected/controllers/SiteController.php(79): CActiveRecord->__construct() 74 $this->render('contact',array('model'=>$model)); 75 } 76 77 public function actionRegister() 78 { 79 $model = new Member; 80 $this->performAjaxValidation($model); 81 if(isset($_POST['Member'])) { 82 $model->attributes = $_POST['Member']; 83 if($model->validate()) { 84 $model->save(false); |
#9 |
+
–
/home/mitcarec/yii/framework/web/actions/CInlineAction.php(50): SiteController->actionRegister() 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 } |
#10 |
+
–
/home/mitcarec/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array()) 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; |
#11 |
+
–
/home/mitcarec/yii/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(); |
#12 |
+
–
/home/mitcarec/yii/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); |
#13 |
+
–
/home/mitcarec/yii/framework/web/CWebApplication.php(283): CController->run("register") 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))); |
#14 |
+
–
/home/mitcarec/yii/framework/web/CWebApplication.php(142): CWebApplication->runController("site/register") 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. |
#15 |
+
–
/home/mitcarec/yii/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 /** |
#16 |
+
–
/home/mitcarec/public_html/demo/euromaster/index.php(14): CApplication->run() 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 date_default_timezone_set('Asia/Dhaka'); 14 Yii::createWebApplication($config)->run(); |