What sort of quotes do you have in 'Fams'? There's an 'undefined
constant' error there, suggesting your quotes aren't correct. Perhaps
they're the "fancy" kind? Don't edit scripts with anything that
outputs those.

On Tue, Jul 21, 2009 at 5:58 AM, biancmb<[email protected]> wrote:
>
> Guys, I am trying hard to make CakePHP work.
> I have followed all instructions. Official docs and other guides.
> The cake page renders fine. Triple-checked models and controllers,
> config files, etc.
> Still getting the "missing table.." message.
> Already tried to delete the ceche files, etc.
> What is left to do?
> Am I missing anything?
> The web seems to be inundated by people like me, all getting the same
> error message.
> I'd love to work with cakePHP, I believe it's a valid alternative to
> RoR and plain PHP, which I have been using for a while.
> I am comfortable with sysadmin, apache, mysql, linux, windows, php,
> etc.
>
> I am now using XAMPP on WindowsXP. But I get the same message under
> easyphp.
> I will try on my linuxbox at home as soon as I get the chance.
> -------- output of http://localhost/prod/
>  Your tmp directory is writable.
>
> The FileEngine is being used for caching. To change the config edit
> APP/config/core.php
>
> Your database configuration file is present.
>
> Cake is able to connect to the database.
>
> -------- output of http://localhost/prod/fams
> Notice (8): Use of undefined constant �Fams� - assumed '�Fams�' [CORE
> \cake\dispatcher.php, line 453]
>
> Missing Database Table
>
> Error: Database table �fams�s for model �Fams� was not found.
>
> Notice: If you want to customize this error message, create app\views
> \errors\missing_table.ctp
>
> --------controller   fams_controller.php
> <?php
> class FamsController extends AppController {
> var $name = ‘Fams’;
> var $scaffold;
> }
> ?>
>
> ---------model    fam.php
> <?php
> class Fam extends AppModel {
> var $name = ‘Fam’;
> }
> ?>
> --------------------
> Note the DB contains a table named "fams"
>
>
> What is wrong?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to