User activation registration with CodeIgniter
问题 I'm trying to build a registration system with CodeIgniter. I have a controller called User with the following code: class User extends CI_Controller{ public function __construct() { parent::__construct(); $this->load->model('user_model'); } public function index() { if(($this->session->userdata('user_name')!="")) { $this->welcome(); } else{ $data['title']= 'Home'; $this->load->view('header_view',$data); $this->load->view("registration_view.php", $data); $this->load->view('footer_view',$data)