On Jan 18, 12:20 pm, "Jonathon Davis" <[EMAIL PROTECTED]> wrote:
I have some insight. I realized this when I created another item in my
website... I think it may have to do with the Pages Controller not
having its own model. Anyone following me on this? I tried to create a
controller/view without a model (because I really don't need one in
this case) and it gave me the same error as the Pages Controller does.
I commented out the stuff for the settings and it displayed the Cake
warning of having no model. I created a model for it, uncommented the
stuff for the settings, and bada-bing. No error message.

Any way to combat this?

The $uses variable is what you normally use in a controller without a
model, apparently. (I'm just learning this myself.) In your zip file,
you have pages_controller.php with the line:

var $uses = array('Page', 'Setting');

But there is no 'Page' model; in theory all you should have is

var $uses = array('Setting');

to make this work.

I'm confused by your earlier comment about putting that in
app_controller.php, though -- AFAIK, you shouldn't have to monkey
around in any of CakePHP's internals like that, and I suspect doing so
may be causing new mysterious errors for you rather than solving them.
I'd really suggest putting everything in the cake/libs/ directory back
the way it was.


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

Reply via email to