CodeIgniter Forums
New to codeigniter, would like some help with an issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: New to codeigniter, would like some help with an issue (/showthread.php?tid=59614)



New to codeigniter, would like some help with an issue - El Forum - 10-27-2013

[eluser]Unknown[/eluser]
Hello. I'm just starting to learn CodeIgniter and I'm on the Static Pages section of the tutorial, which can be found at this url: http://ellislab.com/codeigniter/user-guide/tutorial/static_pages.html

Anyways, I've followed all of the instructions and got to this part:

The controller is now functioning! Point your browser to [your-site-url]index.php/pages/view to see your page. When you visit index.php/pages/view/about you'll see the about page, again including the header and footer.

I followed those instructions and got this error message: No input file specified.

Has anyone gotten an error message like this before? What did I do wrong?


New to codeigniter, would like some help with an issue - El Forum - 10-28-2013

[eluser]Tpojka[/eluser]
Read that page to the end one more time. You forgot this part of code settings:
Code:
$route['default_controller'] = 'pages/view';
$route['(:any)'] = 'pages/view/$1';
You should open application/config/routes.php and write this above in it. Find there what to rewrite.
Also, this is user guide part you should read about routing.