0

私が今持っているのは:

$app->get(/folderBrowse/:path function($app){
bla bla bla 

}); // I know this is not using '' or , 
but it's just for example, because I've tried it with many configurations. my 
syntax is correct in my code, because it works fine when I don't pass a path

しかし、URL エンコードを使用してもファイル パスを渡すと、404 ページが表示されます。私が見逃しているものはありますか。

どんな助けでも大歓迎です。

4

1 に答える 1

0

now you can send stuff like file paths through the url like this

http://localhost/api/something?file_path=some url encoded string

$app->get('/something', function() use($app) {
  $file_path = $app->request()->get('file_path');
call some other stuff... etc

}); 
于 2013-04-17T22:24:04.330 に答える