I have problem to baking in command line with console, only on Postgres Database.
I use :
- Windows
- Cakephp 2.3
- PostgreSQL 8.4.8) My database is on an external server (unix), and the others components on my local computer.
For my App, the CakePhp check seems to be good :
- Your version of PHP is 5.2.8 or higher.
- Your tmp directory is writable.
- The FileEngine is being used for core caching. To change the config edit APP/Config/core.php
- Your database configuration file is present.
- Cake is able to connect to the database.
When I code MVC manually, it's ok, the application retrieves data.
When I use the command line with consol, I have this message :
D:\wamp\www\mobilite\app>cake bake
Welcome to CakePHP v2.3.5 Console
---------------------------------------------------------------
App : app
Path: D:\wamp\www\mobilite\app\
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
What would you like to Bake? (D/M/V/C/P/F/T/Q)
> M
---------------------------------------------------------------
Bake Model
Path: D:\wamp\www\mobilite\app\Model\
---------------------------------------------------------------
Use Database Config: (default/components)
[default] >
Error: Database connection "Postgres" is missing, or could not be created.
thanks for your help,
Simon.