내가 한 노력들

[ CodeIgniter 4 ] 설치, 환경설정 본문

IT 공부/CodeIgniter

[ CodeIgniter 4 ] 설치, 환경설정

JONGI-N CHOI 2021. 12. 7. 15:06

CodeIgniter 4

CodeIgniter는 빠른 실행속도를 보장하는 PHP의 프레임워크

 

 

 

환경설정

 

1. XAMPP 설치 

https://www.apachefriends.org/index.html

 

XAMPP Installers and Downloads for Apache Friends

What is XAMPP? XAMPP is the most popular PHP development environment XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to us

www.apachefriends.org

 

2. php.ini 설정

C:\xampp\php 경로에 php.ini 파일이 존재합니다. 

extension=intl
extension=mbstring

위의 두 개의 주석을 해제해줍니다. 


CodeIgniter 새 프로젝트 생성

 

프로젝트 생성

composer create-project codeigniter4/appstarter <프로젝트 명>

 

 

그러면, 위의 사진과같은 파일과 디렉토리가 만들어지게 됩니다. 

 

Controller, model, view관련 파일과 설정관련 config등 대부분의 주요 파일들은 App폴더에 위치합니다. 

 

URL : 루트경로/public

저는 xampp\htdocs\tutorial이 루트위치기 때문에, localhost/tutorial/public이 됩니다.