Docs home / HareAdmin Handbook

Controllers

On this page

Admin controllers usually extend Backend; site controllers extend Frontend; APIs extend Api.

Base class

  • $noNeedLogin / $noNeedRight — skip auth for named actions (['*'] = all)
  • $this->auth — current admin/member
  • $this->success() / $this->error(lang('…')) — AJAX feedback
  • $this->model — enables shared CRUD helpers

Views

Prefer inline scripts in the view; use Fast.api.contentDialog for forms. See Frontend and Components.