3

CodeIgniter は初めてです。この問題が発生しています。

Unable to load the requested file:
http://localhost/grf_new/index.php/reservation/details/34/.php

コードは次のようになります

$this->load->view(base_url().index_page().'/reservation/details/'.$userid.'/', $data);
4

3 に答える 3

2

追加しないでくださいbase_url()

これを使用してファイルをロードする

$this->load->view('test/test', $data);

フォルダーがこのような場合、ビューフォルダーにファイルを作成します

application/views

test/test.php

//---------------------

//If you want to read the URL use file_get_contents() function
于 2013-07-26T06:35:26.150 に答える
1

これは機能するはずです(テストしません):

$this->load->view('reservation/details/'.$userid, $data);
于 2013-07-26T07:05:43.487 に答える