Welcome Guest, Not a member yet? Register   Sign In
index.php in the url


I have done a controller called "inicio" and i have some method inside. i want to access a method from the view with a form, and i have this atributte action in the form:
action="<?php echo base_url('inicio/form_contacto')
this go to "http://localhost/leongrafix/inicio/form_contacto" and this the message error:
"The requested URL /leongrafix/inicio/form_contacto was not found on this server."
I need to write this url to access a method "http://localhost/leongrafix/index.php/inicio/form_contacto"

i have this "$config['base_url'] = ''; in my config file.

i need to remove the index.php or include index.php in the base_url() functio.

thanks everybody

Use site_url() function

Theme © iAndrew 2016 - Forum software by © MyBB