私はこのようなフォームを持っています:
<?php
echo form_open('/student/insert',array('name' => 'myform');
?>
// form data like label, input tags
// submit button
<?php
echo form_close();
?>
このフォームを示す URL があります。
http://localhost/mycodeigniterproject/index.php/student
このフォームを送信すると、URL は次のようになります。
http://localhost://mycodeigniterproject/index.php/mycodeigniter/controllers/index.php/student/insert
私はそれがあるべきだと思っていますが:
http://localhost/mycodeigniterproject/index.php/student/insert
私のコードの問題は何ですか? CodeIgniter が相対パスを使用しないのはなぜですか?