PHP code example of seeren / controller
1. Go to this page and download the library: Download seeren/controller library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
seeren / controller example snippets
use Seeren\Controller\JsonController;
$controller = new JsonController();
$response = $controller->render(['foo' => 'bar']);
use Seeren\Controller\HTMLController;
$controller = new HTMLController();
$response = $controller->render('template.html.php', [
'title' => 'Hello World'
]);
<h1><?= $title