3

Codeigniterで関数を使用すると、URLform_open()に追加されます。どうすれば削除できますか?注:htaccessを使用してURLからindex.phpを削除しました。index.php

4

2 に答える 2

13

form_open()にアクションを与えることができます。

form_open(base_url().'your_controller_name/function_name');
于 2012-10-06T09:45:30.890 に答える
3

$ config ['index_page']="index.php";からindex.phpを削除していません。

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
//$config['index_page'] = 'index.php';
 $config['index_page'] = '';
于 2019-05-03T23:14:45.393 に答える