Model_user.php
<?php class Model_user extends Orm\Model { protected static $_properties = array('user_id', 'user_email', 'user_name'); protected static $_primary_key = array('user_id'); }
ormin app/.../config.php Then I call
$user_id = Model_User::factory($new_user)->save();
ErrorException [ Error ]: Class 'Model_User' not found
APPPATH/classes/controller/sign.php @ line 42(referring to above) Backtrace: COREPATH/base.php @ line 178 Any ideas?
Jaroslav Petrusevic wrote on Monday 1st of August 2011:hey,
the only error I see is that file should be called user.php
class Model_user extends Orm\Model { protected static $_properties = array('user_id', 'user_email', 'user_name'); protected static $_primary_key = array('user_id'); }
It looks like you're new here. If you want to get involved, click one of these buttons!