lang/php

composer codeigniter

C/H 2016. 4. 12. 00:02

Composer, CodeIgniter 설치 및 설정

# https://packagist.org   codeigniter 검색
# composer 검색
composer search codeigniter

# codeigniter 설치
composer require codeigniter/framework

# codeigniter 설정
cp vendor/codeigniter/framework/index.php .
cp -r vendor/codeigniter/framework/application/ .

# index.php 설정
$system_path = 'vendor/codeigniter/framework/system';
$application_folder = 'application';

# application/config/config.php 설정
$config['composer_autoload'] = 'vendor/autoload.php';

.htaccess 설정

RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]


반응형

'lang > php' 카테고리의 다른 글

PHP RedisClient Class  (0) 2016.06.07
PHP Redis  (0) 2016.06.03
php7 opcache.enable 설정  (0) 2016.04.05
composer 프로젝트 셋업  (0) 2016.04.04
Composer Install  (0) 2016.03.30