I had the same problem.
But when i disable caching in the configuration file.
I get random 'Missing database table...for model....' messages
everytime I run the tests.
What could cause this?
Is it that sometimes the test is done before the fixtures are loaded?
Because everytime I get a Missing database table error, I check the
database and the table is there!
Anyone?
Thnx!!
Jeroen
On 14 jul, 21:25, puneetratan <[EMAIL PROTECTED]> wrote:
> Hello
>
> In the config file of cake php , there is an option for Cake Cache
> true and false, and make it false, and then check
>
> Thanks
> Puneet
>
> On Jul 14, 3:18 pm, Bo ozz <[EMAIL PROTECTED]> wrote:
>
>
>
> > Cake keeps showing me this error message:
>
> > ---------------------
> > Missing Database Table
>
> > Error: Database table albums for model Album was not found.
>
> > Notice: If you want to customize this error message, create app/views/
> > errors/missing_table.ctp
>
> > ------------------
>
> > Pretty self-explanatory you would say, but the table does exist!!
>
> > I've tried troubleshooting this, but the following code in my model
> > does show my records in that table:
>
> > ----------------------
> > <?php
>
> > class Album extends AppModel {
> > function Album() {
> > mysql_connect('localhost','***','***');
> > mysql_select_db('***');
> > $result = mysql_query('SELECT * FROM albums');
> > print_r(mysql_fetch_assoc($result));
> > die();
> > }
> > //var $name = 'Album';
> > //var $hasMany = array('Foto');
>
> > }
>
> > ?>
>
> > --------------------
>
> > Any thoughts??
>
> > thanks!- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---