Welcome Guest, Not a member yet? Register   Sign In
how to make it little more clean
#7

(04-09-2015, 11:15 AM)CroNiX Wrote:
(04-09-2015, 02:59 AM)waqaspuri Wrote: Thanks -> but helpful

am not using __contruct() in my site ->

i can load my function in this way

localhost/web/home (web = is a class)

problem: how do I load it in this way -> localhost/home

With a route. See the docs.

PHP Code:
$route['the-requested-url-to-route'] = 'controller/method'

So

PHP Code:
$route['home'] = 'web/home'//send requests for "home" to the "web" controller, "home" method 
Reply


Messages In This Thread
how to make it little more clean - by waqaspuri - 04-09-2015, 01:45 AM
RE: how to make it little more clean - by Athov - 04-09-2015, 02:21 AM
RE: how to make it little more clean - by Athov - 04-09-2015, 02:54 AM
RE: how to make it little more clean - by CroNiX - 04-09-2015, 11:15 AM
RE: how to make it little more clean - by waqaspuri - 04-10-2015, 12:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB