Home > Backend Development > PHP Tutorial > 1.Ci 框架中表单提交 控制器进行处理的时候发现URL的路径不对

1.Ci 框架中表单提交 控制器进行处理的时候发现URL的路径不对

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:42:41
Original
963 people have browsed it


控制器 From_test.php


class Form_test extends CI_Controller {

public function index(){
$this ->load ->view('fromsucess');
}

public  function get(){
echo 'hah';
}

}
?>
视图

load->helper('form','uri');?>





回复讨论(解决方案)

找到问题的原因了!
在application\config 中的
$config['base_url'] = “' ';为空的话可移植性会高

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template