Hoa Kỳjamierumbelow/codeigniter-base-controller
⛔️DEPRECATED CodeIgniter base controller with view autoloading and layout support
⛔️ 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.
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
[Deprecated] · UIWindow subclass to enable behavior like adaptive round-corners & detecting when Control Center is opened.
⛔️ DEPRECATED - A drop-in Objective-C ViewController that will Automatically scan a document for you you.
⛔️ Deprecated ⛔️ These SDKs are no longer supported by Adobe. Please see Adobe Experience Platform Mobile SDKs for current and supported versions.
🚫 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: