• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner - Create News Tutorial problem with the URL

#1
[eluser]soxmom[/eluser]
I'm new to CI and am working through the tutorials. I'm having a little problem with the create news tutorial. When I load the page (news/create) it loads as I would expect. My problem comes when I submit the form - it directs to a URL of "baseURL/index.php/news/baseURL/index.php/news/create".

I know that it is trying to reload the same page since I've submitted the form with an error in it. But the URL is getting built as if it is just adding to what is already there.

At first I though I had possibly typed something in wrong so I went back and copied the code from the tutorial directly into my files and I'm still getting the same problem.

I've dug around for several hours now trying to figure out what I've done wrong to no avail.

At this point I suspect it is some sort of setting but I just am not sure where to start.

Thanks in advance for any help you can provide.

#2
[eluser]vincej[/eluser]
I started to learn CI last Sept. and I did not find the tutorials much help. I bought a copy of "Professional Codeigniter" by Tom Meyerman from Amazon. It is great for total newbs. Don't worry about the fact that it is based on 1.7 - it is nearly identical to 2.0. Also the CI user guide is very good.

#3
[eluser]arunoda2[/eluser]
You can browse here for good getting starting video tutorial for codeigniter - http://tutorialcodeigniter.com/


#4
[eluser]Nisha S.[/eluser]
Please provide your view code.

#5
[eluser]soxmom[/eluser]
I figured out what my problem was - I had not put the "http://" at the beginning of the 'base_url' variable in the config.php file. Things were working until I got down to a page that was calling another page.

Thanks for your help.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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