I have searched around a bit, and I am sure I am being dense here, but I just cannot get this to work. Whenever I try to instantiate an AR model, Apache crashes with an error "Parent: child process exited with status 3221225477". After searching about for awhile, this seems to be a database problem, multiple errors across several layers of abstraction.
Cool, but what's wrong? Since I receive no worthwhile error messages, I can't figure it out.
Db Setup:
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to set up database
'db'=>array(
'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=gms',
'username'=>'root',
'password'=>'',
'charset'=>'utf8'
)
)
);
And for good measure, here is the model:
class Game extends CActiveRecord {
public static function model($classname = __CLASS__) {
return parent::model($classname);
}
public function tableName() {
return 'game';
}
}Now in the controller: GameController.php in the actionIndex() I call $game = new Game(); And it crashes...
I am sure I have done something retarded, or simply misconfed something, just don't know what...
/Jason

Help













