CI tutorial help please. |
[eluser]Unknown[/eluser]
hey guys, I am brand new to CI and have been doing the user documentation tutorial. This is my first OOP and my first with the CI framework also. linky here to the DOC's http://ellislab.com/codeigniter/user-gui...ction.html now when i submit the form for this tutorial from the create view the URL is doubling up for example the normal url is localhost/ci/index.php/news/create after the form submission it is localhost/ci/index.php/news/createlocalhost/ci/index.php/news/create This causes the page to error with 404 as page not found. here is my create view code Code: <h2>Create a news item</h2>
[eluser]Aken[/eluser]
Check your base_url config setting. It needs to be a full URL with a trailing slash. Code: $config['base_url'] = 'http://localhost/ci/';
[eluser]Unknown[/eluser]
[quote author="Aken" date="1342154730"]Check your base_url config setting. It needs to be a full URL with a trailing slash. Code: $config['base_url'] = 'http://localhost/ci/'; Thanks mate, feel like stupided now the error i made was not haveing HTTP:// before it the rest was right. Cheers for the help. |
Welcome Guest, Not a member yet? Register Sign In |