function indexAction() { $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/ckeditor/ckeditor.js"); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/htmlreg.js"); $form = $this->getForm(); if ($this->form->isSubmitted()) { $this->form->validate(); } $this->view->form = $form; $this->view->users_found = $this->searchUi->getFoundRows(); if ($this->_request->getActionName() != 'preview') { $this->view->search = $this->searchUi->render(); } else { $this->view->search = '<br /><br /><br />'; } $this->view->filterCondition = $this->searchUi->getActive()->getDescription(); $this->view->display('admin/email.phtml'); }