Welcome Guest, Not a member yet? Register   Sign In
How to keep url clean on calling $this->index()
#7

[eluser]CodeIgniteMe[/eluser]
I recommend using the form helper instead of the actual form tag.
Code:
<?php echo form_open('signin'); ?>
This is to prevent this
Code:
<form method="POST" action="/signin">
<!--- rest of your form ---->
</form>
from appending to your existing URI.
for example. If your current URI is
Code:
http://example.com/index.php/home/index
then using this actual form action, will only append and not overwrite the existing URI.
Code:
http://example.com/index.php/home/index/signin
which should not be the behavior


Messages In This Thread
How to keep url clean on calling $this->index() - by El Forum - 06-29-2011, 07:47 AM
How to keep url clean on calling $this->index() - by El Forum - 06-29-2011, 07:52 AM
How to keep url clean on calling $this->index() - by El Forum - 06-29-2011, 08:05 AM
How to keep url clean on calling $this->index() - by El Forum - 07-01-2011, 02:45 AM
How to keep url clean on calling $this->index() - by El Forum - 07-01-2011, 02:56 AM
How to keep url clean on calling $this->index() - by El Forum - 07-01-2011, 06:14 AM
How to keep url clean on calling $this->index() - by El Forum - 07-07-2011, 09:27 PM
How to keep url clean on calling $this->index() - by El Forum - 07-09-2011, 02:41 AM
How to keep url clean on calling $this->index() - by El Forum - 07-10-2011, 07:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB