relipse/tinymvc_sysfiles — pull request #1 by relipse (2013-11-15 09:00:43+00:00)
Title: Jimk

Hopefully, the code should be self-explanatory, but basically what this allows you to do is specify parameters in your controllers
for example in a controller named person you could have:
```
public function _getMethodParamType($action){
switch($action){
case 'edit': return 'multiple_segments';
default: return 'one_segmentskeyvals';
}

}
public function edit($id = null, $field = null, $value = null){
//This equates to /person/edit/42/firstname/John
}

public function add($keyvals = array()){
//this equates to something like /person/add/firstname/John/lastname/Doe/age/21/
foreach($keyvals as $key => $val){
//do something
}
}
```