Codeigniter tutorial Part-1 -How to start project in CodeIgniter 4?

How to start project in CodeIgniter 4?

CodeIgniter is an open-source software rapid development web framework, for use in building dynamic web sites with PHP.

CodeIgniter is a PHP MVC framework used for developing web applications rapidly. CodeIgniter provides out of the box libraries for connecting to the database and performing various operations like sending emails, uploading files, managing sessions, etc.

Step 1:

Download Codeigniter latest Version v4.0.4

https://www.codeigniter.com/        

 

Step 2:

Extract downloaded .zip file.

If you are using XAMPP server copy and paste extracted file inside htdocs directory

C:\xampp\htdocs\

 

Step 3:

Rename folder as your project name.

For example my project name is ci_tutorial.

C:\xampp\htdocs\ci_tutorial

 

Step 4:

Now start your xampp server and run your project using chrome

http://localhost/ci_tutorial/public/

Sometime it shows error like this

But don’t worry, go to C:\xampp\htdocs\ci_tutorial\system and open Codeigniter.php in text editor.

And replace

	
	locale_set_default($this->config->defaultLocale ?? 'en');
	

with


	if (function_exists('locale_set_default')) {
		locale_set_default($this->config->defaultLocale ?? 'en');
	}

Now reload page.

Leave a reply
Latest Posts
Smallest Cricket Stadium In The India By Boundary
Smallest Cricket Stadium In The India By Boundary

Cricket is more than just a sport in India—it’s a passion! From big stadiums like Wankhede and Eden Gardens to smaller, cozier grounds, each has its own charm. But have you ever wondered which is the smallest cricket stadium in India? In this guide, we’ll explore the top 12 "smallest cricket stadiums in the India by boundary", their unique features, and why they’re special. Whether you're a cricket fan or just curious, this fun and easy-to-read article will give you all the details!

 Best Fielder in the World of All Time
Best Fielder in the World of All Time

In cricket, fielding is a genuine skill. Over the years, I have seen hundreds of matches across formats—Test, ODI, and T20. From stunning dives to lightning-fast reactions, I've always been astonished by players who rescue valuable runs and make unbelievable catches. That is why I chose to discuss the "Best fielder in the world of all time". Using data, personal experiences, and a passion for the game, this blog will guide you over the field of fielding.

Asia Cup 2025 Schedule:
Asia Cup 2025 Schedule:

Hey there, cricket fans! Sharing what I know about the Asia Cup 2025 makes me quite happy.

Whatever the Bishnoi community says, it is difficult for Salman Khan to apologize in the black buck case
Whatever the Bishnoi community says, it is difficult for Salman Khan to apologize in the black buck case

Salman Khan has been advised by the Bishnoi community of Rajasthan to apologize in the blackbuck poaching case - but will the matter end if Salman Khan does so? And will Salman Khan want to take this path?