Welcome Guest, Not a member yet? Register   Sign In
url controller item id after base url
#1

Dear all,

Can I have below url path structure in index controller??

www.xxxxxx.com/123

then it will show the item id=123 profile web page.
Is it possible??
Reply
#2

(This post was last modified: 08-26-2015, 04:57 AM by pdthinh.)

(08-25-2015, 11:58 PM)rchiu5hk Wrote: Dear all,

Can I have below url path structure in index controller??

www.xxxxxx.com/123

then it will show the item id=123 profile web page.
Is it possible??

You can add a custom route at bottom of the config/routes.php file

PHP Code:
$route['(:num)'] = 'controller_name/profile/$1'

Read more http://www.codeigniter.com/user_guide/ge...uting.html
Reply




Theme © iAndrew 2016 - Forum software by © MyBB