public function index() { $this->template->tables = $this->table_names; $grants = new \WordPress\Tabulate\DB\Grants(); $this->template->roles = $grants->get_roles(); $this->template->grants = $grants->get(); $this->template->capabilities = $grants->get_capabilities(); $this->template->form_action = $this->get_url('save'); return $this->template->render(); }