Reference search
Results for "modules"
Search results focus on framework reference pages. Open a result when you need the full explanation, or use the quick answer below when it matches what you are trying to build.
Quick answer
Use a custom module
Put app-specific reusable code in src/Modules. Official framework modules stay in the CorianderPHP project; app modules stay owned by this app.
src/
Modules/
Blog/
BlogRepository.php
BlogService.php
Reference
Custom Module Guide
Custom Module Guide Modules are reusable project services or packages. User-created modules should live in the app-owned src/Modules directory so framework updates never overwrite ...
NodeJS Integration Guide
...ween Node.js/npm versions. Do not rely on internal paths such as node_modules\npm\bin\npm-cli.js for normal setup checks. Instead, verify that npm -v works and that where.exe npm o...
Start Here
Framework Concepts
...Controllers Controllers coordinate requests. They receive input, call modules or repositories, and render a view or return a response. Good controller actions are usually short: re...
Controller Guide
...a comes from a database, move that lookup into a repository under src/Modules. The controller should call that repository instead of building SQL directly. Best Practices Keep acti...
Dynamic View Guide
...ticles() should move into an app-owned repository or module under src/Modules. Step 3: Register The Dynamic Route Add a route in public/routes.php, or in a route file loaded from i...
Project Guidance
Recommended App Architecture
... Use app-owned folders: src/ Controllers/ ApiControllers/ Middleware/ Modules/ Routes/ public/ public_views/ documentation/ database/ nodejs/ resources/ tests/ Framework updates ca...
Request Lifecycle
... a long business workflow, move the workflow into a service under src/Modules. 5. Module Or Repository Modules hold app-owned logic. Repositories hold persistence details. namespac...
Testing An App
...tation sitesgenerated downloads, for guided projects Module Unit Test Modules are the easiest app code to test because they should not depend on HTTP rendering. use Modules\Blog\Bl...
Database Patterns
...? null : $row; } Repository Shape Keep SQL in a repository: namespace Modules\Blog; use CorianderCore\Core\Database\SQLManager; final class BlogRepository { public function create(...
Upgrade Guide
...cripts/ tests/ These folders should contain your routes, controllers, modules, views, documentation, assets, migrations, and tests. Update Flow Preview first: php coriander update ...