facut pana la video 7

This commit is contained in:
Cerbu Andrei Mihnea
2023-05-10 00:47:48 +03:00
parent 1abdc313f4
commit 90f12ab916
40 changed files with 1644 additions and 41 deletions
@@ -0,0 +1,32 @@
<?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');
}
}