ci4-admin
ci4-admin copied to clipboard
really do not understand how to install for ci4 alpha 3
really do not understand how to install for ci4 alpha 3 composer install but different structure with your ReadMe Docs. any advice or more exact install steps guide? thank you very much.
I understand, It's not really clear.
- composer require bvrignaud/ci4-admin
- install css/js dependencies (package.json). I use yarn : yarn add admin-lte@v3
- Configure root.
You must set your database like: https://github.com/benedmunds/CodeIgniter-Ion-Auth/tree/4
It's steel work in progress. I have some problems with views path. Actually, it doesn't work out of the box.
If you see some solutions/bugs, or anything else, say it, or send a PR.
Thank you very much for the reply. had installed successfully, though some strange issue. like CI, and like your project.
strange, how to modify route /admin to redirect to login page?
i modified the Admin\Controllers home/index method to:
public function index() { if (! $this->isAuthorized()) { return redirect()->to('/auth/login'); } return $this->view('home', lang('Admin.home-title')); }
but redirect to root homepage always.
and i try to return a string directly, it redirect to homepage too.
Have you set a route for '/auth/login' ?