Welcome Guest, Not a member yet? Register   Sign In
url
#1

[eluser]regicidedelferoz[/eluser]
good day everyone,

hi, i'm currently studying code igniter and my question is about its URL..

a friend of mine told me that I have to follow the www.domain.com/controller/method/param1/param2/param3 flow of codeigniter..

my current URLnow is www.domain.com/param1/param2/param3 but when i'm calling controller/method i am using the www.domain.com/controller/method/param1/param2/param3

my current route is:
Code:
$route['default_controller'] = "controller"; //default controller

//ajax controller
$route['ajax'] = "ajax";
$route['ajax/(:any)'] = "ajax/$1"; //this follows the www.domain.com/controller/method/param1/param2/param3

//any
$route['(:any)'] = "controller/page/$1"; //the www.domain.com/param1/param2/param3 for displaying pages and its parameters

now my question is.. am I doing the right thing? or my friend is correct that if i would not follow the www.domain.com/controller/method/param1/param2/param3 i should not use codeigniter?


i hope i explained it well..



thanks in advance and more power,
- regicide


Messages In This Thread
url - by El Forum - 02-27-2013, 05:58 PM
url - by El Forum - 02-27-2013, 10:46 PM
url - by El Forum - 02-27-2013, 10:52 PM
url - by El Forum - 02-27-2013, 11:04 PM
url - by El Forum - 02-27-2013, 11:21 PM
url - by El Forum - 02-27-2013, 11:39 PM
url - by El Forum - 02-28-2013, 12:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB