First it's not a good idea to use "pagesController" as name ...
In your case, why not declare $uses = array('Member') in your
controller ? That will give you access to Member within your
controller.
Hope this helps
On Sep 23, 1:03 pm, millZ <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using an own PagesController with a pageModel which is not using a
> table ($useTable = false).
> The Page-Model has an attribute "hasOne = array('Member' =>
> array('className' => 'Member', 'foreignKey' => 'mID'))" to make the
> access to the Member-Controller in Page-Controller possible.
>
> why?
> -------
>
> clearly, I've a function index() in Pages Controller with this
> content:
>
> function index(){
> $tmp = $this->Page->Member->find("`updated` > '".$this->Session-
>
> >read('lastlogin')."'");
> var_dump($tmp);
> }// end checkNewFriends
>
> So I want to read some information out of my member-table by using the
> find-Operation of the corresponding class.
> But this is the problem. That don't want to work.
> Here is the error message
> "Notice: Undefined property: Page::$Member in C:\wwwroot\..."
>
> I hope to find some help here :-)
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---