2011-07-26 22 views

答えて

0

最初に$this->uri->segment('{n}')経由でGETリクエストのすべての部分を取得する必要はありませんか?

私は間違っているかもしれませんが、あなたがやっているやり方が正しいとは思いません。これをコード化する場合は、次のようにします。

function index() 
{ 
    $barcode = $this->uri->segment('3'); 
    $text = $this->uri->segment('4'); 
    $format = $this->uri->segment('5'); 
    $quality = $this->uri->segment('6'); 
    $width = $this->uri->segment('7'); 
    $height = $this->uri->segment('8'); 
    $type = $this->uri->segment('9'); 

    // continue with your code 
} 
+0

彼のやり方は問題ありません。 CIの['uri_to_assoc()'](http://codeigniter.com/user_guide/libraries/uri.html)およびPHPの['func_get_args()'](http://php.net/manual/en/function .func-get-args.php)。これは、コード化されたスラッシュの問題です。私には、サーバー* 404(CIではない)があります。どうして、「.htaccess」と関係があるのか​​分かりません。 –

関連する問題