/home/mir-kerama/web/mir-kerama.ru/public_html/framework/db/ar/CActiveRecord.php(2362)
2350 2351 /** 2352 * Constructor. 2353 * @param CActiveRecord $model the model instance 2354 * @throws CDbException if specified table for active record class cannot be found in the database 2355 */ 2356 public function __construct($model) 2357 { 2358 $this->_modelClassName=get_class($model); 2359 2360 $tableName=$model->tableName(); 2361 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2362 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2363 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2364 if($table->primaryKey===null) 2365 { 2366 $table->primaryKey=$model->primaryKey(); 2367 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2368 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2369 elseif(is_array($table->primaryKey)) 2370 { 2371 foreach($table->primaryKey as $name) 2372 { 2373 if(isset($table->columns[$name])) 2374 $table->columns[$name]->isPrimaryKey=true;
#0 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(SystemModules) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#1 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/framework/db/ar/CActiveRecord.php(212): CActiveRecord->getMetaData() 207 * @param array $parameters method parameters 208 * @return mixed the method return value 209 */ 210 public function __call($name,$parameters) 211 { 212 if(isset($this->getMetaData()->relations[$name])) 213 { 214 if(empty($parameters)) 215 return $this->getRelated($name,false); 216 else 217 return $this->getRelated($name,false,$parameters[0]); |
#2 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/protected/modules/core/models/SystemModules.php(110): CActiveRecord->__call("enabled", array()) 105 106 $cr = new CDbCriteria; 107 $cr->select = 'name'; 108 109 self::$cache = SystemModules::model() 110 ->enabled() 111 ->findAll($cr); 112 113 return self::$cache; 114 } 115 |
#3 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/protected/components/SWebApplication.php(41): SystemModules::getEnabled() 36 * Set enabled system modules to enable url access. 37 */ 38 protected function setSystemModules() 39 { 40 // Enable installed modules 41 $modules = SystemModules::getEnabled(); 42 43 if($modules) 44 { 45 foreach($modules as $module) 46 $this->setModules(array($module->name)); |
#4 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/protected/components/SWebApplication.php(31): SWebApplication->setSystemModules() 26 /** 27 * Initialize component 28 */ 29 public function init() 30 { 31 $this->setSystemModules(); 32 parent::init(); 33 } 34 35 /** 36 * Set enabled system modules to enable url access. |
#5 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/framework/base/CApplication.php(165): SWebApplication->init() 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 169 /** 170 * Runs the application. |
#6 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/protected/components/SWebApplication.php(23): CApplication->__construct(array("language" => "ru", "preload" => array("log"), "import" => array("editable.*", "application.models.*", "application.components.*", "application.components.CBaseController", ...), "modules" => array(0 => "action_logger", "admin" => array(), "rights" => array("layout" => "application.modules.admin.views.layouts.main", "cssFile" => false, "debug" => true), 1 => "core"), ...)) 18 /** 19 * @param null $config 20 */ 21 public function __construct($config=null) 22 { 23 parent::__construct($config); 24 } 25 26 /** 27 * Initialize component 28 */ |
#7 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/framework/YiiBase.php(125): SWebApplication->__construct("/home/mir-kerama/web/mir-kerama.ru/public_html/protected/config/...") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#8 |
+
–
/home/mir-kerama/web/mir-kerama.ru/public_html/index.php(18): YiiBase::createApplication("SWebApplication", "/home/mir-kerama/web/mir-kerama.ru/public_html/protected/config/...") 13 14 require $yii; 15 require 'protected/components/SWebApplication.php'; 16 17 // Create application 18 Yii::createApplication('SWebApplication', $config)->run(); 19 20 //phpinfo(); |