I am using CakePHP v3.x and my application has no models, but I would like to return a couple of views or controllers.
$ bin/cake bake template Reports
I tried: * using the option --connection
with a false or empty string * Removing Datasources
from app.php * Leaving in Datasources
, but set Datasources['default']
tofalse
All this leads to an error:
Welcome to CakePHP v3.1.2 Console
---------------------------------------------------------------
App : src
Path: /Applications/MAMP/htdocs/listings/src/
PHP : 5.6.10
---------------------------------------------------------------
Exception: The datasource configuration "default" was not found. in [/Applications/MAMP/htdocs/listings/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php, line 187]
2015-10-22 02:30:48 Error: [Cake\Datasource\Exception\MissingDatasourceConfigException] The datasource configuration "default" was not found.
Exception Attributes: array (
'name' => 'default',
)
Stack Trace:
source
share