How nandha3d/kpsta works
KPSTA is a CodeIgniter 4 website with public information and donation pages, an administrative publishing area, and a separate membership-management portal. The request workflow begins at the explicit route table, reaches a controller, and uses the CI3 compatibility layer to preserve legacy controller/model APIs on the CI4 runtime. The excerpts show the membership hierarchy and service-corner persistence in particular; other feature branches are included from the route table and repository tree, without inferring unsampled controller-to-model calls.
Main entry points: Routes.php HTTP routes · Home.php Public pages · Main.php Membership portal · AppController.php Admin base
Components 21
Public website
- Public pages
app/Controllers/Home.php - Content pages
app/Controllers/News.php - Donations
app/Controllers/Donation.php - Public content models
app/Models/ServiceCorner_model.php - Service-corner views
app/Views/home/service_corner.php
Administration
- Admin publishing
app/Controllers/Admin/Slider.php - Membership admin
app/Controllers/Admin/Membership.php - Aauth
app/Libraries/Aauth.php
Membership
- Membership portal
app/Controllers/Membership/Main.php - Teacher records
app/Controllers/Membership/Teacher.php - Office hierarchy
app/Controllers/MembershipController.php - Membership models
app/Models/Membership
Application runtime
- HTTP routes
app/Config/Routes.php - CI3 compatibility
app/Libraries/Ci3 - Controller base
app/Controllers/BaseController.php - Admin base
app/Controllers/AppController.php - Database adapter
app/Libraries/Ci3/Database/Connection.php - Application database
app/Config/Database.php
Other components
- Site visitor
- Admin user
- Membership user
Connections 22
- Site visitor → HTTP routes: requests pages
app/Config/Routes.php - Admin user → HTTP routes: requests admin
app/Config/Routes.php - Membership user → HTTP routes: requests membership
app/Config/Routes.php - HTTP routes → Public pages: routes to
app/Config/Routes.php - HTTP routes → Content pages: routes to
app/Config/Routes.php - HTTP routes → Donations: routes to
app/Config/Routes.php - HTTP routes → Admin publishing: routes to
app/Config/Routes.php - HTTP routes → Membership admin: routes to
app/Config/Routes.php - HTTP routes → Membership portal: routes to
app/Config/Routes.php - HTTP routes → Teacher records: routes to
app/Config/Routes.php - Controller base → CI3 compatibility: wires accessors
app/Controllers/BaseController.php - Admin base → Controller base: extends
app/Controllers/AppController.php - Admin base → Aauth: checks login
app/Controllers/AppController.php - Membership admin → Admin base: uses base
app/Controllers/Admin/Membership.php - Membership portal → Office hierarchy: extends
app/Controllers/Membership/Main.php - Membership portal → Membership models: loads models
app/Controllers/Membership/Main.php - Teacher records → Membership models: uses models
- Office hierarchy → Membership models: loads district data
app/Controllers/MembershipController.php - Public content models → Database adapter: queries through
app/Models/ServiceCorner_model.php - Database adapter → Application database: connects using
app/Libraries/Ci3/Database/Connection.php - Public pages → Public content models: uses content
- Public pages → Service-corner views: renders