On 5 abr, 11:03, "bit" <[EMAIL PROTECTED]> wrote:
> I've don't remember overriding the __construct method and I just
> double-checked to confirm that. :-P
>
> Tried printing out the contents of $this->components and all I got was
> Session. Next I tried declaring the components array in AppController
> and see if that changes anything.

Hi bit,

I wondered about that but forgot to directly ask/clarify. If you put
code in your app controller that relies on something being present, it
would be a *very good* idea to put what it relies upon in the same
place ;).

> It did. No more errors from PHP but
> then I find that the Session component is loaded and then the
> components in my declared array gets loaded too - the Session
> component is added twice.

You don't need to put "Session" in your own components array (any of
them, anywhere).

> And the weirdness doesn't stop there, I suddenly get a missing model
> error too, even though I've declared the Uses array to use other
> models - I created my own Pages controller - but Cake is now looking
> for a Pages model (which doesn't exist).

put in your pages controller var $users = false; or var $uses = null;
var $uses = array(); or some other negative permutation (I forget
which) that should go away.

>
> Is it possible that a missing model DB table is causing this?

Doubt it,

hth,

AD


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