codeigniter 出现问题并尝试对其进行排序数小时,似乎没有发布帖子变量,表单正在工作我使用文件中的 test.php (print_r()) 操作对其进行了测试,变量是发布正常,因此它的控制器没有按应有的方式进行操作。
控制器:
print_r($_POST); //Nothing
print_r($this->input->post()); //Nothing
print_r($this->input->post(NULL, TRUE)); //Nothing
exit;
也许它的 .htaccess 文件
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|uploads|img|images|frontcss|css|frontjs|js|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
谢谢你的帮助