06-22-2015, 04:59 PM
Hi all,
I am new and I try to learn by doing tutorial from here: http://www.codeigniter.com/user_guide/tutorial and I meet problem, which I am not able to solve it.
I try to search here, but did not find it.
I am in part, where I create form
If I load page with form, it looks:
...but if I try to submit form, I am end on 404 page with address:
where
is root of my project.
...only one thing which I did differently in my project is, that I add rewrite condition to wipe out index.php from address, but even I add back, it does not work, it is same issue.
My routes.php looks same as in tutorial also.
In config.php I have
Can somebody help me to understand, what is wrong?
Thank you for each help in advance PeterB
I am new and I try to learn by doing tutorial from here: http://www.codeigniter.com/user_guide/tutorial and I meet problem, which I am not able to solve it.
I try to search here, but did not find it.
I am in part, where I create form
Code:
<?php echo form_open('news/create') ?>
<label for="title">Title</label>
<input type="text" name="title" />
<br />
<label for="text">Text</label>
<textarea name="text"></textarea>
<br />
<input type="submit" name="submit" value="Submit" />
</form>
Code:
<form action="ci/news/create" method="post" accept-charset="utf-8">
<label for="title">Title</label>
<input type="text" name="title">
<br>
<label for="text">Text</label>
<textarea name="text"></textarea>
<br>
<input type="submit" name="submit" value="Submit">
</form>
Code:
http://localhost/ci/news/ci/news/create
Code:
http://localhost/ci/
...only one thing which I did differently in my project is, that I add rewrite condition to wipe out index.php from address, but even I add back, it does not work, it is same issue.
My routes.php looks same as in tutorial also.
In config.php I have
PHP Code:
$config['base_url'] = 'ci/';
$config['index_page'] = '';
Can somebody help me to understand, what is wrong?
Thank you for each help in advance PeterB