Cakephp is actually trying to connect to the database no matter what table you are using therefore using this
class MyModel extends AppModel { public $useTable = false; }
it will just be a mistake, creating a cakephp application is a piece of cake. Here are some steps you need to take to start development without a database.
Create the file DboFakeDboSource.php in the application / Model / Datasource / Dbo / and put the following code in it
class DboFakeDboSource extends DboSource { function connect() { $this->connected = true; return $this->connected; } function disconnect() { $this->connected = false; return !$this->connected; } }
The next step is to specify that cakephp uses the default dbo source. Go and change the default connection in database.php this way
var $default = array( 'driver' => 'FakeDboSource' );
The third step is to make sure $ useTable = false; included in every model, so add it to AppModel.php
source share