Welcome Guest, Not a member yet? Register   Sign In
following vid tutorial??
#1

[eluser]Neocode[/eluser]
Hello guys, i hope someone can help me with this...


I'm new in codeigniter and i tried the video tutorial 2 that last 21 minutes and i downloaded codeigniter version 1.5.4 .... but the file seems to be different in the tutorial like in the config -> autolad.php..

I have followed the video tutorial up to the point that it can submit comments n the database. my main problem is, in the comment form where a textarea, text and a submit button, when i fill the form and click submit comments the url will display something like this -> http://localhost/CodeIgniter/index.php/blog/comments/index.php/blog/comment_insert.
NOTICE the bold text in just been repeated and diplay the form again.

how will i correct this.

oh by the way when i view the source code of the form page (http://localhost/CodeIgniter/index.php/blog/comments/1) the form action will generate something like this,<form action="index.php/blog/comment_insert" method="post"> but in the tutorial it should be like this http://localhost/CodeIgniter/index.php/blog/comment_insert. the bold text is not shown in my localhost page. please anyone???

thanks it would e a great help Smile thanks alot! lolz

hope you'll replay soon.
#2

[eluser]Sawariya[/eluser]
in config.php you config like this

$config['base_url'] = "http://localhost/codeigniter/";


$config['index_page'] = "";

.httdocs

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^(index\.php|check_images|js|css)
RewriteRule ^(.*)$ index.php/$1 [L]
#3

[eluser]Neocode[/eluser]
wow thanks Smile


that solves the problem. thanks m8 Smile

but if i leave $config[’index_page’] = “”; like this. it will generate a 404 error. so i put $config[’index_page’] = “index.php”;


thanks m8 that really help Smile




Theme © iAndrew 2016 - Forum software by © MyBB