Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Login extends CI_Controller {
- function __construct()
- {
- parent::__construct();
- }
- function index()
- {
- if($this->session->userdata('logged_in'))
- {
- redirect('home', 'refresh');
- }
- else
- {
- $this->load->helper(array('form'));
- $this->load->view('login_view');
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement