I'm using yaf php framework
I want to get param array. ex:
My url:... mvcSample/svc/saveUser/user1/pass/[email protected]/joe/foo
My output params dump:
array (size=3)
'user1' => string 'pass' (length=4)
'[email protected]' => string 'joe' (length=3)
'foo' => null
I want:
array (size=5)
1 =>string 'user1'
2 => string 'pass'
3 => string '[email protected]'
4 => string 'joe'
5 =>string 'foo'
How to change default url pattern ?
Thank you
Since Yaf is very well undocumented, the only option I can think about is to parse URI by Your own:
But You will get garbage on begining of $parts array.
Propably, sooner or later You will start to trying custom URL routing (some samples You can find here: http://docs.php.net/manual/da/yaf-route-regex.construct.php), which will allow You to parse URLs using regexps and pass matched groups to controller: