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

Webee Cafe
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.

Latest Posts

Kiwifruit

Kiwifruit

Kiwifruit, also known simply as kiwi, is a small, fuzzy fruit with a brown, hairy skin and bright green flesh. It is known for its unique, sweet-tart flavor and vibrant green color. The scientific name for the most common variety is Actinidia deliciosa. Kiwifruit is native to China and was originally called Chinese gooseberry, but it was later renamed kiwifruit or kiwi in reference to the New Zealand national bird, the kiwi, which has a similar brown, fuzzy exterior.

Golden Temple Kushalnagar, Coorg's

Golden Temple Kushalnagar, Coorg's

The Golden Temple in Kushalnagar, Coorg, is officially known as the Namdroling Monastery. It is a significant Tibetan Buddhist monastery and is one of the largest teaching centers of the Nyingma lineage of Tibetan Buddhism outside Tibet.

Mysore Palace

Mysore Palace

The Mysore Palace, also known as the Amba Vilas Palace, is a historical palace located in the city of Mysore in the southern state of Karnataka, India. It is one of the most famous tourist attractions in the country and is renowned for its magnificent architecture and rich cultural heritage.

All about the King Cobra - 2 incidents, Power, Venom, Style, Speed

All about the King Cobra - 2 incidents, Power, Venom, Style, Speed

We all know that the king of the jungle is the lion. Because of its strength, majestic gait and roar that shakes the entire forest. Similarly, how much do you know about the snake king? Yes, its name itself says Raja Naga. That means King Cobra. Its scientific name is called ophiophagus hanna. It is the world's largest venomous snake. Its poison is so dangerous that once the poison from its mouth is distributed to 10 people, ten people will lose their lives.

Leave a reply

Exevor's Affordable Elegance: Top Picks for Budget-Savvy Shoppers

Discover unbeatable deals at Exevor Shop's featured product section! Explore a curated selection of budget-friendly yet high-quality items for the savvy shopper in you.