Welcome Guest, Not a member yet? Register   Sign In
The URL Structure of CodeIgniter
#2

[eluser]CI Coder[/eluser]
Because "comments" is your controller and 1 is supposed to be the function within that controller. The structure of the URL in CI is .../controller/function/segment3/segment4/etc.

I assume that you have the code in Comments::index() function. Try accessing the page like this: http://www.example.com/comments/index/1 and change "segment(2)" to "segment(3)"


Messages In This Thread
The URL Structure of CodeIgniter - by El Forum - 11-22-2009, 02:58 PM
The URL Structure of CodeIgniter - by El Forum - 11-22-2009, 03:14 PM
The URL Structure of CodeIgniter - by El Forum - 11-22-2009, 03:18 PM
The URL Structure of CodeIgniter - by El Forum - 11-22-2009, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB