Project TutorialsIntroduction Directory Structure Project Setup Remove index.php using htaccess Change Default Controller CSS Add in Project Create Login Page Design Validation on Login Login with Database Flashdata on Login Display Username after Login Logout Design Dashboard Page List user data form database Insert Data Flash message show if data inserted Delete data from datebase Edit data from datebase Active Inactive user status Show active users detail on home page Image Upload Edit Image View Image on Home Page
Change Default Controller
When we run our codeigniter project. It searches a default controller already existed as Welcome file in contoller.
Now we have to change default controller already existed as welcome.
Step 1 : To change default controller. First open, routes.php file which is already existed in application/config folder.
Step 2 : Replace welcome in default controller into project .
Previous Code : $route['default_controller'] = 'welcome';
New Code : $route['default_controller'] = 'project';
Step 3 : Now, create a file (Project.php) in controller folder. So that replaced file can easily run by default controller.
SEARCH POST HERE
Subscribe My YouTube Channel
Join Our Telegram Channel & Support Eachother
Elevenstech Web Tutorials
Elevenstech Web Tutorials helps you learn coding skills and enhance your skills you want.
As part of Elevenstech's Blog, Elevenstech Web Tutorials contributes to our mission of “helping people learn coding online”.
Subscribe to get the latest updates from Elevenstech Web Tutorials and stay up to date