Welcome Guest, Not a member yet? Register   Sign In
getting values from urls
#6

[eluser]xwero[/eluser]
It has nothing to do with OOP or MVC. It's the common way frameworks identify the controller and its method.

If you want to use one segment, you use routing
Code:
$route['main/(\d+)'] = 'main/news/$1';


Messages In This Thread
getting values from urls - by El Forum - 01-12-2009, 04:30 PM
getting values from urls - by El Forum - 01-12-2009, 04:47 PM
getting values from urls - by El Forum - 01-12-2009, 05:41 PM
getting values from urls - by El Forum - 01-12-2009, 05:43 PM
getting values from urls - by El Forum - 01-12-2009, 06:01 PM
getting values from urls - by El Forum - 01-13-2009, 02:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB