Gump, Is this message correct? "Error: Database table itemss for model Items was not found."
Look at table name the message show: itemss. If that is the message Cake has shown, then something is not properly configured, like the model class, for example. Regards, Luiz Poleto 2008/9/10 bonitarunner <[EMAIL PROTECTED]> > > Gump...Exact same thing happened to me! Very frustrating. I am > absolute beginner (following same todo example) but here is what I did > to get it to work. > > 1) Made another database called apress (not cake), then made items > table in phpAdmin, put same fields as in example. Finally, changed > database.php settings to match to apress database. > 2) turned off caching app\config\core.php this line <uncomment > this> Configure::write('Cache.disable', true); <Not sure you > need to do this but I did anyway> > 3) stopped wamp and restarted > 4) refreshed todo/items in browser and works perfectly now. No code > changes. > > I also downloaded authors code from book site (exactly the same as > mine earlier with your same error). He uses PHP shorthand so make > sure your <item.php> and <items_controller.php> have <?php instead of > <? alone unless you configured server correctly. > > Rough start....but it works now. I hope it helps you. > > > On Sep 9, 3:39 am, forrestgump <[EMAIL PROTECTED]> wrote: > > Hey guys, > > I'm new to cakephp and can't wait to get it fired up.....i was > > creating a test app...and i followed the following steps: > > > > 1) created a database cake > > 2) placed my cake folder into my www folder and renamed it to "todo" > > 3) created a table "items" in database "cake" > > 4) configured my database.php respectively. > > 5) created an items_controller.php in \www\todo\app\controllers with > > the following code: > > <?php > > class ItemsController extends AppController > > { > > var $name = 'Items'; > > var $scaffold; > > } > > ?> > > 6) create an item.php in C:\wamp\www\todo\app\models with the > > following code: > > <? > > class Item extends AppModel > > { > > var $name = 'Item'; > > } > > ?> > > 7) i visitedhttp://localhost/todo/itemsto see a nice message in red > > saying: > > "Missing Database Table" > > also i had highlighted with a red background an error saying: > > "Error: Database table itemss for model Items was not found." > > > > I have configured and set cakephp properly when i visit localhost/todo > > i receive confirmation that cakephp is able to connect to database , > > tmp folder is writable and i have all the css rendered. > > > > can someone please help me with this.... > > > > Forrestgump > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---