
Adrian - 2014-10-30 18:50:54
Hi,
in your movie you show how we can add variables to route (https://www.youtube.com/watch?v=iEpIVOAeaHw).
In routes.php i add:
$this->get('profil/(:str)', 'demo/profil/$1');
and in controller demo.php i add:
public function profil($id) {
print $id;
}
and when i try check it (localhost/profil/dsdas) i see:
$1
whats wrong?