From 5a9537a7c5c03d003df531a0d05b1a38b1b63927 Mon Sep 17 00:00:00 2001 From: nguyenanhung Date: Fri, 11 Mar 2022 10:06:40 +0700 Subject: [PATCH] Remove sample & add helpers --- README.md | 2 +- composer.json | 3 +++ helpers/helpers.php | 9 +++++++++ sample/.htaccess | 6 ------ sample/README.md | 1 - sample/index.html | 11 ----------- sample/modules/.htaccess | 6 ------ sample/modules/README.md | 1 - sample/modules/index.html | 11 ----------- sample/modules/startup/config/.htaccess | 6 ------ sample/modules/startup/config/index.html | 11 ----------- sample/modules/startup/config/routes.php | 11 ----------- sample/modules/startup/controllers/.htaccess | 6 ------ sample/modules/startup/controllers/Startup.php | 1 - sample/modules/startup/controllers/index.html | 11 ----------- sample/modules/startup/index.html | 11 ----------- sample/modules/startup/models/.htaccess | 6 ------ sample/modules/startup/models/Startup_model.php | 1 - sample/modules/startup/models/index.html | 11 ----------- sample/modules/startup/views/.htaccess | 6 ------ sample/modules/startup/views/index.html | 11 ----------- 21 files changed, 13 insertions(+), 129 deletions(-) create mode 100644 helpers/helpers.php delete mode 100644 sample/.htaccess delete mode 100644 sample/README.md delete mode 100644 sample/index.html delete mode 100644 sample/modules/.htaccess delete mode 100644 sample/modules/README.md delete mode 100644 sample/modules/index.html delete mode 100644 sample/modules/startup/config/.htaccess delete mode 100644 sample/modules/startup/config/index.html delete mode 100644 sample/modules/startup/config/routes.php delete mode 100644 sample/modules/startup/controllers/.htaccess delete mode 100644 sample/modules/startup/controllers/Startup.php delete mode 100644 sample/modules/startup/controllers/index.html delete mode 100644 sample/modules/startup/index.html delete mode 100644 sample/modules/startup/models/.htaccess delete mode 100644 sample/modules/startup/models/Startup_model.php delete mode 100644 sample/modules/startup/models/index.html delete mode 100644 sample/modules/startup/views/.htaccess delete mode 100644 sample/modules/startup/views/index.html diff --git a/README.md b/README.md index 5683d35..8f67ae6 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ class Credentials_model extends HungNG_Custom_Based_model ## Hướng dẫn tích hợp mô hình HMVC vào dự án -1. Create folder: `modules` trong thư mục `application`. Tham khảo cấu trúc thư mục `modules` tại `sample/modules/` trong thư viện này +1. Create folder: `modules` trong thư mục `application`. Tham khảo cấu trúc thư mục `modules-samples` tại https://github.com/nguyenanhung/codeigniter-framework-sample/tree/main/modules-sample ```shell . diff --git a/composer.json b/composer.json index 116f4e7..664b55a 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,9 @@ "autoload": { "classmap": [ "hungng/" + ], + "files": [ + "helpers/helpers.php" ] } } diff --git a/helpers/helpers.php b/helpers/helpers.php new file mode 100644 index 0000000..215f799 --- /dev/null +++ b/helpers/helpers.php @@ -0,0 +1,9 @@ + + * Copyright: 713uk13m + * Date: 11/03/2022 + * Time: 10:05 + */ diff --git a/sample/.htaccess b/sample/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/README.md b/sample/README.md deleted file mode 100644 index 701d2ef..0000000 --- a/sample/README.md +++ /dev/null @@ -1 +0,0 @@ -# Sample Code diff --git a/sample/index.html b/sample/index.html deleted file mode 100644 index bcb7cae..0000000 --- a/sample/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/.htaccess b/sample/modules/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/modules/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/modules/README.md b/sample/modules/README.md deleted file mode 100644 index b7fe611..0000000 --- a/sample/modules/README.md +++ /dev/null @@ -1 +0,0 @@ -# Sample Modules diff --git a/sample/modules/index.html b/sample/modules/index.html deleted file mode 100644 index bcb7cae..0000000 --- a/sample/modules/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/startup/config/.htaccess b/sample/modules/startup/config/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/modules/startup/config/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/modules/startup/config/index.html b/sample/modules/startup/config/index.html deleted file mode 100644 index bcb7cae..0000000 --- a/sample/modules/startup/config/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/startup/config/routes.php b/sample/modules/startup/config/routes.php deleted file mode 100644 index 680f48f..0000000 --- a/sample/modules/startup/config/routes.php +++ /dev/null @@ -1,11 +0,0 @@ - - * Copyright: 713uk13m - * Date: 09/10/2021 - * Time: 13:37 - */ -// $route['startup'] = "Startup/index"; diff --git a/sample/modules/startup/controllers/.htaccess b/sample/modules/startup/controllers/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/modules/startup/controllers/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/modules/startup/controllers/Startup.php b/sample/modules/startup/controllers/Startup.php deleted file mode 100644 index b3d9bbc..0000000 --- a/sample/modules/startup/controllers/Startup.php +++ /dev/null @@ -1 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/startup/index.html b/sample/modules/startup/index.html deleted file mode 100644 index b702fbc..0000000 --- a/sample/modules/startup/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/startup/models/.htaccess b/sample/modules/startup/models/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/modules/startup/models/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/modules/startup/models/Startup_model.php b/sample/modules/startup/models/Startup_model.php deleted file mode 100644 index b3d9bbc..0000000 --- a/sample/modules/startup/models/Startup_model.php +++ /dev/null @@ -1 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/sample/modules/startup/views/.htaccess b/sample/modules/startup/views/.htaccess deleted file mode 100644 index 97c65d2..0000000 --- a/sample/modules/startup/views/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ - - Require all denied - - - Deny from all - \ No newline at end of file diff --git a/sample/modules/startup/views/index.html b/sample/modules/startup/views/index.html deleted file mode 100644 index bcb7cae..0000000 --- a/sample/modules/startup/views/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - -