次のようにルーティングしたい:http: //myapp.com/mycontroller /...?x= ..。
mycontrollerの後のすべてが不明です。パスがわからず、パラメータもわかりません。パスとパラメータをルーティングした後、1つの変数として表示されます。
// route in routes.php
Router::connect('/mycontroller/*', 'Mycontroller::index');
// the index function of Mycontroller class
public function index($pathWithParameters) {
print_r($pathWithParameters); // something like: 'hello/world?name=mewel&id=123
}
これは可能ですか?