Login Logout in CodeIgniter
Posted at: December 12, 2018 3:05 PM
Login, logout and check logged with session in CodeIgniter 3
Controller
Create users controller with method public function login()
, public function logout()
and private function logged_in()
application/controllers/Users.php
Model
Create users_model with method public function login($email, $password)
application/models/Users_model.php
View
application/views/users/login.php
Dashboard
Dashboard Controller
application/controllers/Dashboard.php
Dashboard View
application/views/dashboard/index.php
Database
Create users table
This lesson also available on YouTube
Please leave comments
1 Comments
