RepositoryPHPUSHoa Kỳ
jamierumbelow

jamierumbelow/codeigniter-base-controller

⛔️DEPRECATED CodeIgniter base controller with view autoloading and layout support

110sao
42fork
2issue
1lượt xem

⛔️ CodeIgniter base controller - Dự án đã ngừng phát triển

Một lớp MY_Controller mở rộng giúp CodeIgniter xử lý view tự động, layout và asides, nhưng hiện không còn được bảo trì.

dự án codeigniter-base-controller là một lớp MY_Controller mở rộng từ CI_Controller trong CodeIgniter, thiết kế để hỗ trợ tải view tự động, layout và quản lý partials/asides dựa trên triết lý convention over configuration. Tuy nhiên, dự án đã ngừng phát triển vì tác giả không còn sử dụng CodeIgniter. Tác giả đang tìm người tiếp nhận để tiếp tục bảo trì.

✨ Điểm nổi bật

  • Tự động tải view: View được tải tự động dựa trên tên controller và action, tìm ở application/views/controller/action.php
  • Hỗ trợ layout: View được đưa vào layout, tìm ở application/views/layouts/controller.php hoặc application/views/layouts/application.php
  • Biến $yield trong layout: View được render và lưu trong biến $yield để chèn vào layout
  • Tắt layout cho AJAX: Cài $this->layout = FALSE để chỉ hiển thị view, hữu ích cho yêu cầu AJAX
  • Asides/Partials: Dùng $this->asides để chèn nội dung biến vào layout thông qua biến $yield_tên
  • Tự động tải model: Chỉ định danh sách model bằng $this->models, tự động load theo định dạng $model_string
  • Tự động tải helper: Chỉ định danh sách helper bằng $this->helpers
  • Ghi đè 404 riêng: Định nghĩa phương thức _404() trong controller để tùy chỉnh trang 404

💡 Vì sao đáng chú ý

Dự án áp dụng triết lý convention over configuration, giúp giảm thiểu cấu hình thủ công trong CodeIgniter. Tuy nhiên, do tác giả không còn sử dụng CodeIgniter, dự án đã ngừng phát triển, được đánh dấu là deprecated và tìm người tiếp nhận. Phù hợp với dự án cũ đang dùng CodeIgniter và cần cơ chế tự động hóa view/layout.


#CodeIgniter #PHP #Deprecated #Archived #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
jamierumbelow/codeigniter-base-model

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity

1.0k
Apr 4, 2018
RepositoryPHP
furey/tinx

⛔️ Laravel Tinx is archived and no longer maintained.

442
Dec 14, 2019
RepositorySwift
aaronabentheuer/AAWindow

[Deprecated] · UIWindow subclass to enable behavior like adaptive round-corners & detecting when Control Center is opened.

473
May 7, 2018
RepositoryC
Rohde-Schwarz/TrustedGRUB2

DEPRECATED TPM enabled GRUB2 Bootloader

193
Sep 28, 2021
RepositoryJavaScript
markitondemand/DEPRECATED-DataApis

Markit On Demand - Market Data APIs

176
May 17, 2017
RepositoryObjective-C
charlymr/IRLDocumentScanner

⛔️ DEPRECATED - A drop-in Objective-C ViewController that will Automatically scan a document for you you.

175
Nov 7, 2021
RepositoryObjective-C
Adobe-Marketing-Cloud/mobile-services

⛔️ Deprecated ⛔️ These SDKs are no longer supported by Adobe. Please see Adobe Experience Platform Mobile SDKs for current and supported versions.

170
Oct 14, 2022
RepositoryC#
proletariatgames/CUDLR

⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely

166
Feb 28, 2018
Repository
sphero-inc/Sphero-Android-SDK

🚫 DEPRECATED REPO: Sphero™ is the amazing robotic ball ( gosphero.com ), this is the repository for the Android SDK for Sphero™. Visit dev site for more information:

159
Oct 15, 2019