"In the app/config/core.php do you have the debug set to 0 or 1 if it is set to zero set it to 1,2, or 3 as this will keep refreshing your cache. >From what I have learned in the short time I been learning Cake the cache doesn't refresh as much will in production mode (debug set to 0) to help speed up the app."
Actually i haven't paid attention to what my debug level was. I will check that. Anyway, a change in the database in production is not likely to happen all the time. Regards, Luiz Poleto 2008/9/10 teknoid <[EMAIL PROTECTED]> > > Why is that a problem? It works exactly as it should... > If you do not wish to cache your models, you can disable it in > core.php (you shouldn't disable cache in production). > > On Sep 10, 2:20 pm, "Luiz Poleto" <[EMAIL PROTECTED]> wrote: > > I've been having a few problems with Cake 1.2.0.7296 RC2 internal cache. > If > > i change something in the database, those changes are not reflected in > Cake, > > what causes a lot of error.Actually nothing to worry too much, since > > deleting the cache files is solving it. But i'm concerned about how far > this > > problem goes. > > > > By the way, does anyone here having problem with that? > > > > Best regards, > > Luiz Poleto > > > > 2008/9/10 forrestgump <[EMAIL PROTECTED]> > > > > > > > > > Luiz Poleto > > > > > Yea i checked my tables and all they were all perfect i tried the > > > delete the cache solution by bonitarunner, tht did the trick....man > > > cake is wierd.... > > > > > Thanks a lot guys.....saved me a lot of time..... > > > > > On Sep 10, 8:07 pm, "Luiz Poleto" <[EMAIL PROTECTED]> wrote: > > > > 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/itemstoseea 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 -~----------~----~----~----~------~----~------~--~---