A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
I am trying to add urls with the following form:
site.com/process/view/345/some_text
site.com/process/view/876/some_other_text
so the last two parameters vary.I have tried:
$r->add( 'process/{action}/{id:}/{lang:[a-z]{2}+}')
and also :
$r->add( 'process/{action}/{id:}/{name:}')
but it always seems to fail at the preg_match
I am trying to add urls with the following form: site.com/process/view/345/some_text site.com/process/view/876/some_other_text
so the last two parameters vary.I have tried: $r->add( 'process/{action}/{id:}/{lang:[a-z]{2}+}') and also : $r->add( 'process/{action}/{id:}/{name:}') but it always seems to fail at the preg_match
thanks