Newbie...really simple question
I'm trying to create a new Cakephp application, however when I load up localhost/cake it gives me the message Missing Database Table No Database table for model Post (expected posts), create it first. Posts is another application I previously made but deleted, and now I cannot get Cake to recognize my new application. I have changed the name of the database in the database.php configuration file so I'm not exactly sure what my problem is. Any suggestions would be greatly appreciated. --~--~-~--~~~---~--~~ 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: Newbie...really simple question
On Nov 13, 2007 11:17 AM, butangphp [EMAIL PROTECTED] wrote: I'm trying to create a new Cakephp application, however when I load up localhost/cake it gives me the message Missing Database Table No Database table for model Post (expected posts), create it first. Posts is another application I previously made but deleted, and now I cannot get Cake to recognize my new application. I have changed the name of the database in the database.php configuration file so I'm not exactly sure what my problem is. Any suggestions would be greatly appreciated. It's complaining that there is no 'posts' table in your database. I know it's a dumb question, but are you sure the table is in the database you've specified in database.php? -- Chris Hartjes My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Newbie...really simple question
and that you have permission to access that table with the db user you have set up in the database.php. Just because you can access a database doesn't always mean you have access to the tables. Sam D On 11/13/07, Chris Hartjes [EMAIL PROTECTED] wrote: On Nov 13, 2007 11:17 AM, butangphp [EMAIL PROTECTED] wrote: I'm trying to create a new Cakephp application, however when I load up localhost/cake it gives me the message Missing Database Table No Database table for model Post (expected posts), create it first. Posts is another application I previously made but deleted, and now I cannot get Cake to recognize my new application. I have changed the name of the database in the database.php configuration file so I'm not exactly sure what my problem is. Any suggestions would be greatly appreciated. It's complaining that there is no 'posts' table in your database. I know it's a dumb question, but are you sure the table is in the database you've specified in database.php? -- Chris Hartjes My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: Newbie...really simple question
Well what I'm trying to do is forget about this table/database all together...it was a simple example I was trying to do in order to familiarize myself with cakephp, but I have since deleted all files related to Post (the controller, model, views, sql table, etc.) However when I try and load localhost cake, its telling me Missing controller You are seeing this error because controller PostsController could not be found. Notice: If you want to customize this error message, create app\views/ errors/missing_controller.thtml. Fatal: Create the class below in file : app\controllers \posts_controller.php ?php class PostsController extends AppController { var $name = 'Posts'; } I just want to forget about this stupid Posts_controller and everything associated and create another application in cake without this message interfering! Quite frustrating...any advice? On Nov 13, 10:50 am, Chris Hartjes [EMAIL PROTECTED] wrote: On Nov 13, 2007 11:17 AM, butangphp [EMAIL PROTECTED] wrote: I'm trying to create a new Cakephp application, however when I load up localhost/cake it gives me the message Missing Database Table No Database table for model Post (expected posts), create it first. Posts is another application I previously made but deleted, and now I cannot get Cake to recognize my new application. I have changed the name of the database in the database.php configuration file so I'm not exactly sure what my problem is. Any suggestions would be greatly appreciated. It's complaining that there is no 'posts' table in your database. I know it's a dumb question, but are you sure the table is in the database you've specified in database.php? -- Chris Hartjes My motto for 2007: Just build it, damnit! @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Newbie...really simple question
On Nov 13, 2007 12:57 PM, butangphp [EMAIL PROTECTED] wrote: Well what I'm trying to do is forget about this table/database all together...it was a simple example I was trying to do in order to familiarize myself with cakephp, but I have since deleted all files related to Post (the controller, model, views, sql table, etc.) However when I try and load localhost cake, its telling me Missing controller You are seeing this error because controller PostsController could not be found. Notice: If you want to customize this error message, create app\views/ errors/missing_controller.thtml. Fatal: Create the class below in file : app\controllers \posts_controller.php CakePHP is expecting to find stuff in specific places, so the error message is quite accurate: it wants a PostsController. Check your routes.php file to make sure you're not defaulting to posts as the controller. -- Chris Hartjes My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---