Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Controllers

l.a edited this page Oct 27, 2019 · 1 revision

Controller Layer

This is responsible for handling incoming HTTP requests and providing a suitable response. Alpha controllers can generate responses including HTML, XML, JSON, PDFs and more. Controllers can also load and manipulate models, and render view templates in order to generate the appropriate HTTP response. To create a controller, run

php alpha g:controller path/to/controller

This creates the controller in your app/controllers directory. Controllers are very generic php files, so it's pretty easy to understand and use.

Clone this wiki locally