I've installed Cake 1.2 with WAMP. PHP works, MySQL works and (most
importantly) data-driven pages built manually with Cake work.But
despite my best efforts I can't get the console to behave.
My system path includes:
- C:\wamp\www\cakephp\cake\console
- C:\wamp\bin\php\php4.4.6\cli
- C:\wamp\bin\php\php4.4.6
- C:\wamp\www\cakephp\cake\console\libs
The cake console launches consistently whichever directory I'm in, but
there are two show-stopper issues.
FIRST ISSUE
Whatever directory I launch cake from, it can't load schema.php:
01: C:\wamp\www>cake
02:
03:
04: Welcome to CakePHP v1.2.1.8004 Console
05: ---
06: Current Paths:
07: -app: app
08: -working: C:/wamp/www/cakephp/app
09: -root: C:/wamp/www/cakephp
10: -core: C:\wamp\www\cakephp
11:
12: Changing Paths:
13: your working path should be the same as your application path
14: to change your path use the '-app' param.
15: Example: -app relative/path/to/myapp or -app /absolute/path/to/
myapp
16:
17: Available Shells:
18:
19: ROOT\app\vendors\shells:
20: - none
21:
22: CORE/vendors\shells:
23: - none
24:
25: CORE/cake\console\libs:
26: acl
27: api
28: bake
29: console
30: i18n
31: schema
32: testsuite
33:
34: To run a command, type 'cake shell_name [args]'
35: To get help on a specific command, type 'cake shell_name help'
36:
37:
38: C:\wamp\www>cake acl initdb
39:
40:
41: Welcome to CakePHP v1.2.1.8004 Console
42: ---
43: App : app
44: Path: C:/wamp/www/cakephp/app
45: ---
46: Cake Schema Shell
47: ---
48: Error: schema.php could not be loaded
Note lines 31 and 48. I get the same error message for the command:
- cake schema run create Dbacl
A search reveals two schema.db files in my Cake installation:
- C:\wamp\www\cakephp\cake\console\libs
- C:\wamp\www\cakephp\cake\libs\model
SECOND ISSUE
Manually created pages work fine with the configured database ...
01: var $default = array(
02: 'driver' => 'mysql',
03: 'persistent' => false,
04: 'host' => 'localhost',
05: 'login' => 'acluser',
06: 'password' => 'resulca',
07: 'database' => 'acltest'
08: );
... but the console gives me this response:
01: C:\wamp\www>cake bake
02:
03:
04: Welcome to CakePHP v1.2.1.8004 Console
05: ---
06: App : app
07: Path: C:/wamp/www/cakephp/app
08: ---
09: Interactive Bake Shell
10: ---
11: [D]atabase Configuration
12: [M]odel
13: [V]iew
14: [C]ontroller
15: [P]roject
16: [Q]uit
17: What would you like to Bake? (D/M/V/C/P/Q)
18: > m
19: ---
20: Bake Model
21: Path: C:/wamp/www/cakephp\app\models\
22: ---
23: Use Database Config: (default/test)
24: [default] > default
25: Error: Your database does not have any tables.
There are six tables, all of which work with the manually-created Cake
project.
I've pretty much exhausted my own efforts on this. My next step would
be to try installing XAMPP. After that? I'll have to look more closely
at running the console on a remote server with Cygwin or whatever.
To take a higher level view of the issue: without the console, much of
the efficiency that would be gained from using Cake is lost. Perhaps
some systematic diagnostic documentation would be a prudent
investment. I'd even volunteer to write them ... but not until I get
the console running.
Thanks folks,
::Leigh
http://www.else.co.nz/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---