Re: Cake Schema issue ?

2007-11-17 Thread FoxMaSk

with cakephp 1.1.x.x :
is it normal to allocate a so big memory size to use bake ?
at the beginning i used 16M but i had to grow up memory limit to
200M !
for finnally see no controller generated as requested :(

D:\wamp\www_cakephp_1.1\cake\scripts>dir ..\..\app\controllers

 Répertoire de D:\wamp\www_cakephp_1.1\app\controllers

17/11/2007  09:10  .
17/11/2007  09:10  ..
10/11/2007  16:08  components
   0 fichier(s)0 octets
   3 Rép(s)  127 667 056 640 octets libres

D:\wamp\www_cakephp_1.1\cake\scripts>


Would you like bake to build your controller interactively?
Warning: Choosing no will overwrite  controller if it exist. (y/n)
[y] > n

Would you like to include some basic class methods (index(), add(),
view(), edit())? (y/n)
[y] > y

Would you like to create the methods for admin routing? (y/n)
[y] > y

Fatal error: Allowed memory size of 188743680 bytes exhausted (tried
to allocate 264 bytes) in D:\wamp\www_cakephp_
1.1\cake\libs\class_registry.php on line 300


On Nov 15, 6:06 pm, FoxMaSk <[EMAIL PROTECTED]> wrote:
> On Nov 15, 5:24 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > why are passing a path?
>
> i also did
> " cake schema generate "
>
> but even this produce the error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake Schema issue ?

2007-11-15 Thread FoxMaSk

because even without -path the issue is met...


On Nov 15, 5:24 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> why are passing a path?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake Schema issue ?

2007-11-15 Thread FoxMaSk



On Nov 15, 5:24 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> why are passing a path?

i also did
" cake schema generate "

but even this produce the error.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake Schema issue ?

2007-11-15 Thread Gwoo

why are passing a path?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cake Schema issue ?

2007-11-15 Thread FoxMaSk

Hi,
when i do this :
D:\wamp\www_cakephp\cake\console>cake schema generate -connect default
-path d:\
wamp\www_cakephp\cake\console\config\sql\foxmask.sql

i get the error :


Welcome to CakePHP v1.2.0.5875 pre-beta Console
---
Cake Schema Shell
---
Generating Schema...
Error: Missing Database Connection. Try 'cake bake'


but my connection is well defined and works :

D:\wamp\www_cakephp\cake\console>more d:\wamp\www_cakephp\app\config
\database.php
class DATABASE_CONFIG
{
var $default = array('driver' => 'mysql',
 
'connect' => 'mysql_connect',
'host'
=> 'localhost',
 
'login' => 'foxmask',
 
'password' => 'foxmask',
 
'database' => '',
 
'prefix' => '');

/*var $test = array('driver' => 'mysql',
'connect' =>
'mysql_connect',
'host' =>
'localhost',
'login' =>
'user',
'password' =>
'password',
'database' =>
'project_name-test',
'prefix' =>
'');*/
}
?>


What's the matter ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---