Controllers
Manually Create
<?php
namespace App\Controllers;
use System\Core\BaseController;
class HomeController extends BaseController
{
public function index()
{
// Fetch and display a home page
echo "Welcome to PHPFast";
}
}Using the Command-Line Interface
Controller Structure
Basic Controller
Advanced options
Routing to a Controller
Basic
Dynamic Parameters
Models in Controller
Render Views & Assets Data to Views
Load CSS and JS File
Get data from Controller
Manual way
Using Block
Message Handle
Caching in Controller
Last updated
Was this helpful?