SetEnv FUEL_ENV development
DB::list_tables();from the controller I'm getting this error message:
Fuel\Core\FuelException [ Error ]: Database method Fuel\Core\Database_PDO_Connection::list_tables is not supported by Fuel\Core\Database_PDO_Connection
Fuel\Core\FuelException [ Error ]: Database type not defined in default configuration
Harro Verton wrote on Monday 19th of March 2012:The generic config file (config/db.php) and the environment file (config/your_environment/db.php) are merged by the Config class when loaded. If the result is not what you expect, maybe the environment selection failed. Dump \Config::get('db') to see what was loaded, you can add a dummy value to your environment db.php to add the debugging process.
return array( 'default' => array( 'type' => 'mysqli', 'connection' => array( 'hostname' => 'localhost', 'database' => 'dbname_here', 'username' => 'user_here', 'password' => 'pass_here', 'persistent' => FALSE, ), 'table_prefix' => '', 'charset' => 'utf8', 'caching' => false, 'profiling' => true, ), );
It looks like you're new here. If you want to get involved, click one of these buttons!