3376 Posts in 1000 Topics by 713 members
|Go to End|
27 March 2009 at 11:20am Last edited: 27 March 2009 11:21am
I have some parent and grandparent checking to do.
Parent checking is as so (in Page model):
return ($this->Parent())? $this->Parent()->Title : false;
This works fine.
Grandparent checking is as so (in page model)
Grandparent checking fails with the following error:
"Call to a member function Children() on a non-object "
Now, the class tree should be:
BookHolder -> BookList -> BookPage
I've set up BookList to have BookHolder as a parent, so a call from a bookpage, which sits in a booklist (which belongs to a bookholder) should return the title of the BookHolder page?
Or am I missing something?
Happy to clarify more if required,
|Go to Top|