I have a model/view/controller for site-wide settings called... well...
Settings.

The problem is, no matter what I do, it never seems to get into the
pages controller properly.

I have $uses = array('Setting') in /app/app_controller.php and I even
tracked down the pages controller in /cake/libs/controller/ and put it
in there too. I've also tried putting it into controller.php but I
still can't get it to work.

It gives me this error:

Notice: Undefined property: AppController::$Setting in
/var/www/cake/app/app_controller.php on line 24

Fatal error: Call to a member function find() on a non-object in
/var/www/cake/app/app_controller.php on line 24

All other (non-default) controllers handle it ok. I am only having
problems with this in the pages controller.

Help would be greatly appreciated.  Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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