|
访问路径:http://localhost/CodeIgniter/index.php/admin/login/index
在view的login.php中:
<form action="<?php echo site_url('admin/login/login_in')?>" method=post>
修改: config['enable_query_strings'] = TRUE;
访问路径:http://localhost/CodeIgniter/index.php?d=admin&c=login&m=index
在view的login.php中:
<form method="post" action="http://localhost/CodeIgniter/index.php?admin/login/login_in">
http://localhost/CodeIgniter/index.php?admin/login/login_in(提交时会提示:An Error Was Encountered)
怎么自动变成:http://localhost/CodeIgniter/index.php?d=admin&c=login&m=login_in
|
|