-EDIT- Yes this actually does work. I see that now...
Is it possible to use a variable to determine a property?
I have 2 classes that are called as part of my controller
$this->document->setPageNum
and
$this->document2->setPageNum
I would like to use something like
if (is_array($pagenum)) {
$doc = 'document';
} else {
$doc = 'document2';
}
$this->$doc->setPageNum = $pagenum;
Is that possible to do?