willy.club/app/App/Controller/DefaultController.php

21 lines
293 B
PHP

<?php
namespace App\Controller;
abstract class DefaultController
{
static function index()
{
view('pages/home');
}
static function echo($text = 'You sent nothing...')
{
json_response($text);
}
static function error()
{
1 / 0;
}
}