Also: when you navigate to the homepage: http://localhost/Cake_Application/ does everything appear ok? (with styles, etc.) Does it say it is able to connect to the database?
Do all of the values appear correctly in Cake_Application/config/database.php ? On Mon, Nov 16, 2009 at 8:18 AM, jburns <jeremybu...@me.com> wrote: > Just a quick knee jerk reply. What happens if you access this link: > http://localhost/Cake_Application/posts (in other words with > index.php)? > > On Nov 16, 7:04 am, SugarCRM Geek <naveenshurpale...@gmail.com> wrote: > > hi all, > > Am new to Cake. i started by trying to create an application using > > Command Line Interface. > > My datasource configuration looks like this: > > Name: default > > Driver: mysql > > Persistent: false > > Host: 127.0.0.1 > > Port: 3306 > > User: root > > Pass: > > Database: cake_db > > inside the Database "cake_db", i have 2 tables 'posts' & 'items'. > > Based on these two tables,am being prompted to create the Model & > > Controller. > > After giving all the right inputs, i get this message: > > --------------------------------------------------------------- > > The following Model will be created: > > --------------------------------------------------------------- > > Name: Post > > Associations: > > --------------------------------------------------------------- > > Look okay? (y/n) > > [y] > y. > > > > same goes for the Contoller too. > > > > --------------------------------------------------------------- > > The following controller will be created: > > --------------------------------------------------------------- > > Controller Name: Posts > > var $scaffold; > > --------------------------------------------------------------- > > > > same for the Views also. > > > > but the problem is when i go to the > URLhttp://localhost/Cake_Application/index.php/posts > > > > i get the following error message: > > Missing Database Table > > Error: Database table posts for model Post was not found. > > > > When i take a " print_r($config);" from dbo_mysql.php, i get this > > > > Array ( [persistent] => [host] => localhost [login] => root [password] > > => [database] => posts [port] => 3306 [connect] => mysql_pconnect > > [driver] => mysql [prefix] => ) > > > > where u can clearly see that the database it is showing is 'posts' ? > > > > why is it not taking the database name given by me i.e. 'cake_db' ? > > > > been in this problem thru the weekend, hope somebody gives me > > solution for this. > > -- > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-...@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/cake-php?hl=. > > > -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.