Reference search
Results for "modules"
Reference results link to the matching section. Follow its prerequisites before using a code extract.
Custom Module Guide
Build A Working Custom Module
...The starter's Composer mapping "App\\": "src/" loads it from src/Modules/Blog . Custom modules are ordinary PHP classes; only method files under src/Views expose URLs. Run composer dump-autoload if you change the mapping.
Core Concepts
Modules
Custom modules are your own services, repositories, validators, and permission classes. Use src/Modules with the starter's App\ namespace. Official framework modules live in the framework repository; do not put application features in Coria...
Testing An App
Module Unit Test
Modules are the easiest app code to test because they should not depend on HTTP rendering.
Database Module Guide
Database Module Guide
The database layer centralizes PDO connections through DatabaseHandler and exposes query helpers through SQLManager . A handler is created lazily on the first SQL call; no service-container registration is needed in 0.4.1. For tests or a cu...
Recommended App Architecture
Recommended App Architecture
Keep framework files separate from application behavior. In 0.4.1, pages and HTTP handlers share one private Views tree; classes and browser helpers remain ordinary app-owned code. Actions is a convention, not a special framework feature. A...
Database Patterns
Repository Shape
...The Custom Module Guide provides a complete SQLite migration, PostRepository , handler, and expected response. The examples above are query extracts: their tables and columns must already exist in your application. In particular, the join r...
Dynamic View Guide
Scripts And Fragments
Explicit full views load ancestor _script.js modules based on the template's directory , not the request URL. An unsuffixed template has no automatic paired page module; import its behavior from a directory _script.ts . Fragments skip both ...
Request Handlers
Reuse App-Owned Action Classes
...Keep SQL, reusable validation, and permissions in app modules . See Dynamic View Guide for the matching template and Shelter API handlers for a persisted API.
NodeJS Integration Guide
NodeJS Integration Guide
CorianderPHP's optional Node.js toolchain type-checks TypeScript, bundles browser modules with esbuild, and builds Tailwind CSS. All commands run from the project root.
Page Scripts And Shared TypeScript
How Entry Discovery Works
...Different plain entries may reuse local variable names because moduleDetection: "force" gives them independent module scopes.
Request Lifecycle
Request Lifecycle
...5 Page or handler A direct GET renders with metadata/layouts/scripts; a callable coordinates modules and returns a response. 6 Emitter ResponseEmitter sends headers/status and suppresses bodies for HEAD.
File-Based Routing
Middleware And Visibility
...Reusable classes belong in src/Actions or src/Modules , not disguised as routable PHP files. Unsuffixed templates do not create URLs; method-suffixed files in the view tree do.
Static View Guide
Add Browser Behavior Only When Needed
Create src/Views/about/index.ts beside the page, then build: The framework automatically includes its compiled module when present. Do not add a second manual script tag. See Page Scripts for a working interaction and shared imports. PHP-on...
Upgrade Guide
Migrate Browser Code And Tooling
...Explicit full views load template-directory modules; direct pages also load their paired entry. JSON, redirects, explicit HTML, and fragments remain undecorated.