Re: bake on linux error

2008-02-21 Thread Juan Luis Baptiste
Hi Dardo,

I found in /cake/cake/console/libs/templates/skel/config/sql to create the
tables. Thank you for your info.


-- 
Juan Luis Baptiste

On Tue, Feb 19, 2008 at 5:04 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]>
wrote:

>
> mysql> describe aros;
> +-+--+--+-+-++
> | Field   | Type | Null | Key | Default | Extra  |
> +-+--+--+-+-++
> | id  | int(10)  | NO   | PRI | NULL| auto_increment |
> | parent_id   | int(10)  | YES  | | NULL||
> | model   | varchar(255) | YES  | | NULL||
> | foreign_key | int(10)  | YES  | | NULL||
> | alias   | varchar(255) | YES  | | NULL||
> | lft | int(10)  | YES  | | NULL||
> | rght| int(10)  | YES  | | NULL||
> +-+--+--+-+-++
> 7 rows in set (0.00 sec)
>
> mysql> describe acos;
> +-+--+--+-+-++
> | Field   | Type | Null | Key | Default | Extra  |
> +-+--+--+-+-++
> | id  | int(10)  | NO   | PRI | NULL| auto_increment |
> | parent_id   | int(10)  | YES  | | NULL||
> | model   | varchar(255) | YES  | | NULL||
> | foreign_key | int(10)  | YES  | | NULL||
> | alias   | varchar(255) | YES  | | NULL||
> | lft | int(10)  | YES  | | NULL||
> | rght| int(10)  | YES  | | NULL||
> +-+--+--+-+-++
> 7 rows in set (0.00 sec)
>
> mysql> describe aros_acos;
> +-++--+-+-++
> | Field   | Type   | Null | Key | Default | Extra  |
> +-++--+-+-++
> | id  | int(10)| NO   | PRI | NULL| auto_increment |
> | aro_id  | int(10)| NO   | MUL | ||
> | aco_id  | int(10)| NO   | | ||
> | _create | varchar(2) | NO   | | 0   ||
> | _read   | varchar(2) | NO   | | 0   ||
> | _update | varchar(2) | NO   | | 0   ||
> | _delete | varchar(2) | NO   | | 0   ||
> +-++--+-+-++
> 7 rows in set (0.01 sec)
>
> mysql>
>
>

--~--~-~--~~~---~--~~
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: bake on linux error

2008-02-17 Thread Juan Luis Baptiste
Hi,

On Feb 17, 2008 7:29 PM, b logica <[EMAIL PROTECTED]> wrote:

>
>
> Yes, you have to provide a param to the cake script. It's true that
> that's not a very helpful error msg. It should echo usage, at the very
> least.
>
> Try:
> cake bake
>
> http://tempdocs.cakephp.org/#TOC112318
>
>
The same result, I have also tried before with cake acl initdb and get the
same error.


Cheers,
-- 
Juan Luis Baptiste

--~--~-~--~~~---~--~~
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: bake on linux error

2008-02-17 Thread b logica

On Feb 10, 2008 5:23 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm new to cakePHP, and I'm trying to run the bake script as the
> instructions in the manual and scereencast, but I keep getting the
> following error
>
> [EMAIL PROTECTED] ~]$ export PATH=$PATH:/var/www/cake/cake/console
> [EMAIL PROTECTED] ~]$ cake
>
> Hello juancho,
>
> CakePHP Console:
> This file has been loaded incorrectly and cannot continue.
> Please make sure that /cake/console is in your system path,
> and check the manual for the correct usage of this command.
> (http://manual.cakephp.org/)
>
> As you can see, the PATH variable is set ok so I don't get why it
> doesn't work. I'm missing something ?
>

Yes, you have to provide a param to the cake script. It's true that
that's not a very helpful error msg. It should echo usage, at the very
least.

Try:
cake bake

http://tempdocs.cakephp.org/#TOC112318

--~--~-~--~~~---~--~~
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: bake on linux error

2008-02-16 Thread [EMAIL PROTECTED]

Hi,

On Feb 10, 5:23 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to cakePHP, and I'm trying to run thebakescript as the
> instructions in the manual and scereencast, but I keep getting the
> followingerror
>
> [EMAIL PROTECTED] ~]$ export PATH=$PATH:/var/www/cake/cake/console
> [EMAIL PROTECTED] ~]$ cake
>
> Hello juancho,
>
> CakePHP Console:
> This file has been loaded incorrectly and cannot continue.
> Please make sure that /cake/console is in your system path,
> and check the manual for the correct usage of this command.
> (http://manual.cakephp.org/)
>
> As you can see, the PATH variable is set ok so I don't get why it
> doesn't work. I'm missing something ?
>

Doing some digging on the source code of bake.php I see that the error
is on line 164 on this test:

if (!isset($this->args[0]) || !isset($this->params['working'])) {


It seems that $this->args[0] is undefined at this point but I don't
know why, not even what it's supposed to contain that parameter. ideas
of what's going wrong here ???

I'm on linux using 1.2.0.6311-beta.

Thanks,

Juan.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



bake on linux error

2008-02-10 Thread [EMAIL PROTECTED]

Hi,

I'm new to cakePHP, and I'm trying to run the bake script as the
instructions in the manual and scereencast, but I keep getting the
following error

[EMAIL PROTECTED] ~]$ export PATH=$PATH:/var/www/cake/cake/console
[EMAIL PROTECTED] ~]$ cake

Hello juancho,

CakePHP Console:
This file has been loaded incorrectly and cannot continue.
Please make sure that /cake/console is in your system path,
and check the manual for the correct usage of this command.
(http://manual.cakephp.org/)

As you can see, the PATH variable is set ok so I don't get why it
doesn't work. I'm missing something ?

Thanks

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---