/** * Execute the action */ public function execute() { $this->email = $this->getParameter('email'); // does the item exist if (BackendMailmotorModel::existsAddress($this->email)) { parent::execute(); $this->getData(); $this->loadForm(); $this->loadCustomFields(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing'); } }