/** * Load the item data */ protected function loadData() { $this->id = $this->getParameter('id', 'int', null); if ($this->id == null || !BackendMailengineModel::exists($this->id)) { $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing'); } $this->record = BackendMailengineModel::getPreview($this->id); echo $this->record; die; }