post 表单时 Codeigniter URL 中的一个错误
A mistake in Codeigniter URL when post a form
我是 codeigniter 框架的初学者。
在 codeigniter v.3 中,我创建了一个表单
<?php echo form_open("login/registration"); ?>
当前 URL 是“http://padpors/login"; but when I submit form, form has posted to "http://padpors/padpors/index.php/login/registration”
转到application/config/config。php
在这里你会找到 $config['base_url'];
将行编辑为:
$config['base_url'] = 'http://padpors/';
我是 codeigniter 框架的初学者。
在 codeigniter v.3 中,我创建了一个表单
<?php echo form_open("login/registration"); ?>
当前 URL 是“http://padpors/login"; but when I submit form, form has posted to "http://padpors/padpors/index.php/login/registration”
转到application/config/config。php
在这里你会找到 $config['base_url'];
将行编辑为:
$config['base_url'] = 'http://padpors/';