Hi,
I've just started testing FuelPHP and I'm building a small demo app.
I've got a problem using the DB class.
When I go onto the page I get an error message saying:
"ErrorException [ Error ]: Class 'Model\DB' not found"
The code for my model and controller is here: http://pastebin.com/2WLeYgCu
Is there anything I need to include to get the db working (if so where ?) or am I making a mistake? I've just been reading the docs.
Thanks
You've got your namespaces wrong.
You model class lives in the namespace "Model", the DB class in the global namespace. So either use a "use \DB" in your model, or use "\DB" to access the DB class...