/** * @param \Nette\ComponentModel\Container $obj */ protected function attached($obj) { parent::attached($obj); if ($obj instanceof Nette\Application\UI\Presenter) { $this->payPal->setReturnAddress($this->link('//return!'), $this->link('//cancel!')); } }