public function get_new() { $this->data['section_bar_active'] = __('email::lang.Send Email')->get(ADM_LANG); $this->data['groups_dropdown'] = null; if (Bundle::exists('groups')) { $this->data['groups_dropdown'] = Groups\Model\Group::all(); } $this->data['email_templates'] = Email\Model\Template::all(); return $this->theme->render('email::email.new', $this->data); }
public function get_index() { $this->data['custom_templates'] = Email\Model\Template::all(); $this->data['section_bar_active'] = __('email::lang.Email Templates')->get(ADM_LANG); return $this->theme->render('email::template.index', $this->data); }