How nersus15/mntemplate works
This repository is a small PHP MVC template, with visible examples of a client-facing HIPELMAS portal and registration, profile, article, and product pages. The principal workflow is an HTTP request being resolved to a controller action, which can prepare data and render views. The map also shows the template’s query and helper layer. The README describes the MVC approach, but sampled sources do not establish how every listed page or feature is wired; those links are left out.
Main entry points: apps.php App dispatcher · controller.php Controller services · qbuilder.php Query builder · index.php PHP entry
Components 20
Request runtime
- PHP entry
index.php - App dispatcher
apps/core/apps.php - Route definitions
apps/routes/routes.php - Request hooks
apps/hooks/common.php - Example controllers
apps/controller/contoh.php - Web-service controller
apps/controller/ws/contoh.php - Controller services
apps/core/controller.php
Portal features
- Registration handling
apps/form_handler/examp.php - Authentication
apps/library/auth.php
Presentation
- Portal pages
apps/views/pages/landing.php - Profile forms
apps/views/forms/registrasi_bio.php - Page templates
apps/views/template/client_dore.php - Browser interactions
public/asset/js/main.js
Data and services
- Models
apps/models/models.php - Query builder
apps/helpers/qbuilder.php - Database adapter
apps/core/database.php - Mail helper
apps/helpers/mail_sender.php
Other components
- Visitor
- SMTP mail service
- MySQL database
Connections 15
- Visitor → PHP entry: requests
- PHP entry → App dispatcher: starts
- App dispatcher → Route definitions: registers routes
- App dispatcher → Request hooks: runs hooks
- App dispatcher → Example controllers: dispatches
- App dispatcher → Web-service controller: dispatches
- Example controllers → Controller services: uses services
- Controller services → Query builder: creates
- Controller services → Portal pages: renders views
- Controller services → Page templates: renders views
- Models → Query builder: queries through
- Query builder → Database adapter: uses
- Database adapter → MySQL database: queries
- Registration handling → Profile forms: handles form
- Mail helper → SMTP mail service: sends mail