Skip to content

Commit ac95ed3

Browse files
committed
Update README.md
1 parent 9955d90 commit ac95ed3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,46 @@ Bản đóng gói lại thư mục system framework của CodeIgniter, sử dụ
1111
- [x] Hỗ trợ Output Response trên giao diện CLI thông qua hàm `ResponseOutput::writeLn($message)`
1212
- [x] Bổ sung class `StatusCodes` khai báo sẵn các HTTP code tuân chuẩn (from Symfony framework), VD: `StatusCodes::HTTP_OK`. Chi tiết tham khảo thêm tại class `StatusCodes`
1313

14+
## Hướng dẫn cài đặt gói vào trong dự án
15+
16+
1. Cài đặt gói vào trong dự án với lệnh sau
17+
18+
```shell
19+
composer require nguyenanhung/codeigniter-framework
20+
```
21+
22+
2. Cập nhật file `index.php`
23+
24+
Tìm dòng
25+
26+
```phpt
27+
/*
28+
*---------------------------------------------------------------
29+
* SYSTEM DIRECTORY NAME
30+
*---------------------------------------------------------------
31+
*
32+
* This variable must contain the name of your "system" directory.
33+
* Set the path if it is not in the same directory as this file.
34+
*/
35+
$system_path = 'system';
36+
```
37+
38+
Sửa thành như sau
39+
40+
```phpt
41+
/*
42+
*---------------------------------------------------------------
43+
* SYSTEM DIRECTORY NAME
44+
*---------------------------------------------------------------
45+
*
46+
* This variable must contain the name of your "system" directory.
47+
* Set the path if it is not in the same directory as this file.
48+
*/
49+
$system_path = '/your_vendor_path/nguyenanhung/codeigniter-framework/system';
50+
```
51+
52+
3. Xoá thư mục `system` trong thư mục gốc dự án đi cho gọn
53+
1454
## Hướng dẫn viết Controller kế thừa Base Controller
1555

1656
Trong thư viện đã xây dựng sẵn 1 Base Controller, kế thừa như sau

0 commit comments

Comments
 (0)