using cakephp Bake
Hello, when i am using bake(from cmd in windows7,xampp),when i am finishing db configuration, i see the error: --- The following database configuration will be created: --- Name: default Driver: mysql Persistent: false Host: localhost User: root Pass: Database: guestbook --- Look okay? (y/n) [y] > y Do you wish to add another database configuration? [n] > n Fatal error: Class 'DATABASE_CONFIG' not found in C:\xampp\htdocs \guestbook\cake \console\libs\tasks\db_config.php on line 260 How to correct it? Thanks for attention:) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Using CakePHP-bake , some of the database table names get changed in model files...why is it so?
I'm not understanding you. But, it seems you are not using the bake shell properly. In linux you must type: cakbe bake or cake bake model, and when it asks for params lets say name of the table (is the name cake expect the table might have). but if your table doesnt follow cakephp conventions, you must type the correct name of the table for that model. for example: If you have a table called user, cake in the command: cake bake model, must expect that your table should be name as "users", instead of "user", so if this happen, your are obligated to say to the script that "users" is not the table name, and type "user" in the script for correct coding generation. then, your model is going to be called "user.php", instead of cakephp conventional name "users.php". I hope this can help you. Regards. On Jul 24, 1:50 am, Anibigi wrote: > Hi, > > I am using Bake to create models for my database tables. > I have run into a little problem. > > I have 25 tables > > I strated baking the models until for one of the database tables the > bake started giving a name of it own to the model,file and class. > > For example ,the table in database is named : 'risk_manager' > > (It has association with other tables which i'm defining while baking) > > However the model for this turns up as a file called "risk.php" and > the class name is called "risk" (but it is mapped to the correct > table.) > > Why is this happening...? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Using CakePHP-bake , some of the database table names get changed in model files...why is it so?
Hi, I am using Bake to create models for my database tables. I have run into a little problem. I have 25 tables I strated baking the models until for one of the database tables the bake started giving a name of it own to the model,file and class. For example ,the table in database is named : 'risk_manager' (It has association with other tables which i'm defining while baking) However the model for this turns up as a file called "risk.php" and the class name is called "risk" (but it is mapped to the correct table.) Why is this happening...? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---