Welcome Guest, Not a member yet? Register   Sign In
Form Helper - Question about the "form_open" Function
#1

[eluser]Refringe[/eluser]
Hey everyone, just started diving into CI and so far I'm loving it.

So far I just have one small question about the form_open() function in the Form Helper. When I have the following line in my view...

Code:
<?php echo form_open('/account/register'); ?>

CI will output the following...

Code:
<form action="http://localhost/index.php/account/register" method="post">

Is there any way to prevent the "index.php" from being written, aside from writing the HTML myself?
#2

[eluser]BrianDHall[/eluser]
I'm guessing that in your config.php file (in your config directory) you have the index page set to index.php - if you go through the steps to remove index.php - or if you have already done so - you just change it like so:

Code:
$config['index_page'] = "";
#3

[eluser]Refringe[/eluser]
...and it's as easy as that. I can't believe I missed it.

Thanks for your help!




Theme © iAndrew 2016 - Forum software by © MyBB