ci4-admin icon indicating copy to clipboard operation
ci4-admin copied to clipboard

really do not understand how to install for ci4 alpha 3

Open hitomtao opened this issue 6 years ago • 4 comments

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.

hitomtao avatar Dec 12 '18 18:12 hitomtao

I understand, It's not really clear.

  1. composer require bvrignaud/ci4-admin
  2. install css/js dependencies (package.json). I use yarn : yarn add admin-lte@v3
  3. 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.

bvrignaud avatar Dec 13 '18 08:12 bvrignaud

Thank you very much for the reply. had installed successfully, though some strange issue. like CI, and like your project.

hitomtao avatar Dec 14 '18 13:12 hitomtao

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.

hitomtao avatar Dec 14 '18 13:12 hitomtao

Have you set a route for '/auth/login' ?

bvrignaud avatar Dec 14 '18 14:12 bvrignaud