F
F
fat4lix2015-01-21 11:18:35
CodeIgniter
fat4lix, 2015-01-21 11:18:35

Authorization check in CodeIgniter using Dx Auth library?

Good afternoon! Tell the newbie who came across. I'm using the Dx Auth library for CodeIgniter. The library has an is_logged_in() function that checks if the user is logged in. Whether prompt it is possible to use somewhere this function once that at the appeal to any controller there was such check?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy, 2015-01-21
@fat4lix

1. you need to create a controller MY_Controller extends CI_Controller
2. In the MY_Controller constructor, do an authorization check
3. When creating page controllers, inherit them from MY_Controller

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question