Complete Guide on How to Install CodeIgniter 4 — Devstringx Technologies

  • Copy the index.php and .htaccess file form the public folder and past outside the public folder.
  • Open the index.php and change the below-given code
  • Replace the above line with below
  • And press Ctrl+S to save the changes
  • Now you can access the project without the public http://localhost/C4/
  • Home_cnt.php at path xampp\htdocs\C4\app\Controllers
  • Blogs_mod.php at path xampp\htdocs\C4\app\Models
  • AddBlog_view.php at path xampp\htdocs\C4\app\Views
  • BlogsList_view.php at path xampp\htdocs\C4\app\Views
  • EditBlog_view.php at path xampp\htdocs\C4\app\Views
  • Open .env and setup the default database connection
  • database.default.hostname = localhost
  • database.default.database = codeigniter4
  • database.default.username = root
  • database.default.password =
  • database.default.DBDriver = MySQLi
  • Open .env and change the project environment
  • CI_ENVIRONMENT = development



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Devstringx Technologies

Devstringx Technologies


Devstringx Technologies is highly recommended IT company for custom software development, mobile app development and automation testing services