Sparks + php-activerecord = Fatal error: Class 'Users' not found |
[eluser]Unknown[/eluser]
Hello everyone. I just followed this tutorial: http://heybigname.com/2011/07/28/codeign...tallation/ to install/test sparks + php-activerecord In my elementary test i getting: Fatal error: Class 'Users' not found in C:\xampp\htdocs\.....\webroot\application\controllers\test.php on line 20 1. I created 'users' table with 2 records in DB. 2. Here's my tiny model code in ./application/models/Users.php : class Users extends ActiveRecord\Model { } 3. Here's controller code: class Test extends CI_Controller { ... public function users() { $this->load->spark('php-activerecord'); // This works. $users = Users::all(); // This blows up print_r ($users); } ... } Navigating to SITE.com/test/users - causes above Fatal Error. What could be the cause? Gleb.
[eluser]Unknown[/eluser]
this think is XAMPP's fault, try any other like MAMP for example... |
Welcome Guest, Not a member yet? Register Sign In |