How hanifnoerr/codeigniter_bootstrap_login works
This is a CodeIgniter 3 login template with administrator/user roles. The main workflow is credential submission, database-backed account lookup, session establishment, and a role-dependent dashboard; logout clears the session. The framework bootstrap and routing are shown alongside the app. The README documents the two roles and database setup, but the supplied excerpts do not show the login model’s query or the route mapping, so those connections are omitted or marked unverified.
Main entry points: CodeIgniter.php Framework bootstrap · Login.php Login controller · Session.php Session handling · Dashboard.php Dashboard controller
Components 24
Login application
- Login controller
application/controllers/Login.php - Dashboard controller
application/controllers/Dashboard.php - Login page
application/views/login.php - Role dashboards
application/views/dashboard_a.php - Shared layout
application/views/__header.php
Framework runtime
- Front controller
index.php - Framework bootstrap
system/core/CodeIgniter.php - Request routing
system/core/Router.php - Controller base
system/core/Controller.php - Class and view loader
system/core/Loader.php - Common utilities
system/core/Common.php - Configuration
system/core/Config.php - Hooks
system/core/Hooks.php - Request input
system/core/Input.php - Response output
system/core/Output.php - Request security
system/core/Security.php - Logging
system/core/Log.php
Session and data
- Account lookup
application/models/M_login.php - Session handling
system/libraries/Session/Session.php - Session handler interface
system/libraries/Session/SessionHandlerInterface.php - Database session driver
system/libraries/Session/drivers/Session_database_driver.php - Redis session driver
system/libraries/Session/drivers/Session_redis_driver.php - Application database
application/config/database.php
Other components
- Visitor
Connections 24
- Visitor → Front controller: opens app
- Front controller → Framework bootstrap: starts
index.php - Framework bootstrap → Request routing: initializes
system/core/CodeIgniter.php - Request routing → Configuration: reads routes
system/core/Router.php - Framework bootstrap → Common utilities: loads
system/core/CodeIgniter.php - Framework bootstrap → Hooks: loads
system/core/CodeIgniter.php - Framework bootstrap → Request input: loads
system/core/CodeIgniter.php - Framework bootstrap → Response output: loads
system/core/CodeIgniter.php - Framework bootstrap → Request security: loads
system/core/CodeIgniter.php - Framework bootstrap → Configuration: loads
system/core/CodeIgniter.php - Controller base → Class and view loader: initializes
system/core/Controller.php - Login controller → Account lookup: loads model
application/controllers/Login.php - Login controller → Request input: reads credentials
- Login controller → Login page: renders
application/controllers/Login.php - Login controller → Session handling: sets or clears
application/controllers/Login.php - Login controller → Dashboard controller: redirects after login
application/controllers/Login.php - Dashboard controller → Session handling: checks role
application/controllers/Dashboard.php - Dashboard controller → Shared layout: renders
application/controllers/Dashboard.php - Dashboard controller → Role dashboards: renders role view
application/controllers/Dashboard.php - Session handling → Session handler interface: uses interface
system/libraries/Session/Session.php - Session handling → Database session driver: selects configured driver
system/libraries/Session/drivers/Session_database_driver.php - Session handling → Redis session driver: selects configured driver
system/libraries/Session/drivers/Session_redis_driver.php - Database session driver → Application database: stores session data
system/libraries/Session/drivers/Session_database_driver.php - Account lookup → Application database: queries accounts