I saw in some libraries something like this:
$this->getResponse()->setRedirect($returnUrl);
How is this "multiple" executed, or how should a class be built to do something like this?
I think:
class greeting
{
public function hi()
{
public function howAreYou()
{
echo 'How are you?';
}
}
}
$greet = new greeting;
$greet->hi()->howAreYou();
But I think this is not so good, I would rather use something like extends, but I do not know. Thanks for your suggestions.
source
share