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 <[email protected]> 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 [email protected]. 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=.
