• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restricted access in the directory back_end

The system is divided into front end and back end, and the back end is in the folder called "back_end." For example:


Access for all model, controllers and views of the directory and subdirectories "back_end" is need to check if the User to be logged.

So I created a librarie and added in the autoload.php and doing just a simple test:

function __construct()
  $CI =& get_instance();
   if (($CI->uri->segment(1) == 'back_end') AND (!$CI->session->userdata('logged_in'))) {

But is not working right, anyone know why?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.