cake-php  

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

Andy
Fri, 01 May 2009 07:44:21 -0700

I had this same exact problem and solved it by calling 'cake bake'
with the -app option and enclosing the directory with double quotes.
Here is what the call looked like:

c:\..\cake\console> cake bake -app "c:\program files\apache\htdocs\cake
\app"



On Apr 17, 10:39 am, albe <radialremo...@gmail.com> wrote:
> Hi,
> I'm trying to follow the "Simple ACL" tutorial but I've got a problem
> just after the database configuration with cake bake.
> The steps I take are the following:
>
> - I copy cake code in my htdocs directory
> - I create a database with the 4 table just as wrote on the first page
> of the tutorial
> - I set the app/config/database.php file with the details of my db
> - I launch cake console and it asks me for the path of the app
> directory, so I write it
> - the console asks me for a database configuration and I follow the
> guided procedure to create it (I provide the same database name where
> I've created the 4 tables)
>
> after that I got this error:
>
> Fatal error: Class 'DATABASE_CONFIG'notfoundin C:\Program Files
> \Apache Softwa
> re Foundation\Apache2.2\htdocs\simpleacl\cake\console\libs\tasks
> \db_config.php o
> n line 265
>
> Why there's a reference to that file? My db configuration is on
> another file (app/config/database.php)

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

  • Re: Simple acl tutorial (Class DATABASE_CONFIG) not found Andy