• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remove index.php from form_open()

#1
[eluser]webdude[/eluser]
is it possible to remove the index.php when using form_open() ?
Code:
echo form_open('email/send');
The above example would create
Code:
<form method="post" action="http:/www.your-site.com/index.php/email/send" />

#2
[eluser]Michael Wales[/eluser]
Have you implemented the .htaccess solution - therefore your anchor() links don't have the index.php as well?

If you have, then look in your config.php and make sure you have it setup correctly.

If not, implement the .htaccess then alter your config.php.

Read the guide - it tells you how.

#3
[eluser]webdude[/eluser]
Ah yea, thanks for the heads up. Had not removed the index.php from $config['index_page'] = "index.php";

#4
[eluser]Michael Wales[/eluser]
User Guide: CodeIgniter URLs - See the "Removing index.php" section


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.