[eluser]MikhailFerreira[/eluser]
With the Form Helper from CodeIgniter - form_open - I have specified something similar to...
Code:
echo form_open('news/create');
...to begin the a form and I am using mod_rewrite with .htaccess to remove "index.php" from the URL.
The problem that I am coming across is that the action attribute in the form's opening tag, is being compiled with "index.php" like so:
Code:
http://www.website.com/index.php/news/create
...instead of what I would like it to do:
Code:
http://www.website.com/news/create
At the moment I am using "str_replace" to remove "index.php/" from the opening tag...
Code:
echo str_replace('index.php/','',form_open('news/create'));
...but this is not ideal, because it almost defeats the purpose of the simplicity of using this helper in the first place.
Are there any other solutions that relate to this helper?
Could it be somewhere in the documentation I might have missed?