the URL is showing twice!! really simple I think |
[eluser]xcodesane[/eluser]
Hello guys, first post here, so sorry for not being too familiar with the forum. Ok so basically used the form loader: Code: class WebLogin extends CI_Controller { and then in the displaydetails/displayResults/ controller, I wrote simple echo: Code: class DisplayDetails extends CI_Controller { then when I submit the login form, in the address bar the URL shows the following: http://domainname.com/index.php/www.doma...layResults as you can see twice the domain address is mentioned...why so? this is why I can't progress.. Thanks in advance. K.S.A
[eluser]xcodesane[/eluser]
18 views and no reply? is this a serious problem? I thought it would be common setting error ![]()
[eluser]cideveloper[/eluser]
what is your base_url and uri_protocol in config.php?
[eluser]xcodesane[/eluser]
$config['base_url'] = 'www.f2bksa.com'; $config['uri_protocol'] = 'AUTO'; ....
[eluser]WanWizard[/eluser]
Impatient are we? Think we're all idling around until someone asks a question? form_open() uses the site_url (a combination of 'base_url' and 'index_page') set in the config to construct the action, so I suggest you look at what you have configured there...
[eluser]xcodesane[/eluser]
@WanWizard....no not impatient otherwise programming won't be the right thing for me to do ![]() rather excited to know the relation between view counter and response counter... ![]()
[eluser]bhumes[/eluser]
I think you need to add a trailing slash to your base_url and you need to remove the trailing slash from your form_open argument.
[eluser]Atharva[/eluser]
Try Code: $config['base_url'] = 'http://www.f2bksa.com';
[eluser]xcodesane[/eluser]
Hey guys, Thanks all for the replies...it is really nice to experience the community's support first hand. I edited the config.php base url to null so Code: $config['base_url'] = ''; catch ya later ![]() K.S.A |
Welcome Guest, Not a member yet? Register Sign In |