class Tag extends AppModel
{
        var $name = 'Tag';
}

Simple syntax error...
You need to have the "var" in front of the $name.


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Jim Rootham
Sent: Thursday, December 10, 2009 12:30 PM
To: CakePHP
Subject: Model class not found

I am trying out cakePHP so I have a very simple site.  I get the
following error.

class Tag extends AppModel { $name = 'Tag'; }
Fatal error: Class 'Tag' not found in /home/downtown/public_html/
test_cake/cake/libs/class_registry.php on line 140

in ..\app\models\tag.php I have

class Tag extends AppModel
{
        $name = 'Tag';
}

What silly blunder am I making?
I have tried clearing tmp/cache and I have reloaded cakePHP from
scratch.
I have seen this error in Google searches but it was a relatively
obvious syntax error.

I am asking here because the answers site at cakephp is not sending me
confirmation emails.

Thanks


Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.

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

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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