• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI tutorial help please.

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
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
This causes the page to error with 404 as page not found.

here is my create view code
<h2>Create a news item</h2>

&lt;?php echo validation_errors(); ?&gt;

&lt;?php echo form_open('news/create') ?&gt;

<label for="title">Title</label>
&lt;input type="input" name="title" /&gt;&lt;br />

<label for="text">Text</label>
&lt;textarea name="text"&gt;&lt;/textarea><br />

&lt;input type="submit" name="submit" value="Create news item" /&gt;


Messages In This Thread
CI tutorial help please. - by El Forum - 07-12-2012, 06:29 PM
CI tutorial help please. - by El Forum - 07-12-2012, 09:45 PM
CI tutorial help please. - by El Forum - 07-13-2012, 05:53 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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