Welcome Guest, Not a member yet? Register   Sign In
Datamapper - Model Class not found
#11

[eluser]Arministrator[/eluser]
@WanWizard - I came up with nothing new, and Google's not helping much. All my other Codeigniter applications, databases and stuff work OK.

Here's what came across my mind - could you by any chance upload some tested version of Codeigniter 2.0.2. with DataMapper and a single DM model in it, and then it will at least be clear that the problem is somewhere in my WAMP config. Hope it's not too much hassle.
#12

[eluser]WanWizard[/eluser]
Time to check some things:
- database is loaded (in autoload?)
- datamapper library is loaded (in autoload, and after the database?)
- model file is in application/models
- model filename is lower case
- model class has the same name as the file, and is capitalized (file = user.php, class = User)
- table is named as the plural of the model (class = User, table name = users)
- model class is defined as 'class User extends Datamapper', no extension of Model or CI_Model

And what have you modified in your CI installation (because a folder structure like \ci-dm\sys\core\ isn't default).

And show the code of your model, and of the controller that's loading the model.




Theme © iAndrew 2016 - Forum software by © MyBB