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

Appe Kallurti - Mother of All Tulunadu Peoples

Appe Kallurti - Mother of All Tulunadu Peoples

THE LEGEND OF KALLURTI KALKUDA Shambhu, himself was a famous sculptor. When his wife was pregnant with the 5th child, he was commissioned by royal decree of the King for several works in Shravanabelagola. When Shambhu was away, his wife bore twins and named them Beeru Kalkuda and Kallamma (Kallurti).

Trend: Exevor launched new tool for domain availability check

Trend: Exevor launched new tool for domain availability check

We launched a tool for search domain name for check availability. This tool is little bit straight and quick.

Exevor launched new tool for domain availability check

Exevor launched new tool for domain availability check

We launched a tool for search domain name for check availability. This tool is little bit straight and quick.

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.