Files
FACULTATE-KNOW_YOUR_FOOD/knowyourfood/controllers/siteController.php
T

32 lines
644 B
PHP

<?php
namespace app\controllers;
use app\core\Controller;
use app\core\Request;
class SiteController extends Controller{
public function handleContact(Request $request){
$body = $request->getBody();
return 'handling requested data';
}
public function contact(){
return $this->render('contact');
}
public function home(){
$params = [
'name' => "TheCodeholic"
];
return $this->render('home', $params);
}
public function profile(){
return $this->render('profile');
}
public function _404(){
return $this->render('_404');
}
}