<./>.dev./hood

S/N URL Route Controller Method
1 / $route['default_controller'] Welcome index
2 /contacts $route['contacts'] Contacts index
3 /contacts/create $route['create'] Contacts create
4 /contacts/edit/id $route['edit/:id'] Contacts edit
5 /contacts/update/id $route['update/:id'] Contacts update
6 /contacts/delete/id $route['delete/:id'] Contacts

dele

 

$route['default_controller'] = 'welcome'; $route['contacts'] = 'contacts'; $route['create'] = 'contacts/create'; $route['edit/:id'] = 'contacts/edit'; $route['update/:id'] = 'contacts/update'; $route['delete/:id'] = 'contacts/delete'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE;

 

S/N Route Corresponding URL
1 $route['default_controller'] = 'welcome'; http://localhost:3000
2 $route['contacts'] = 'contacts'; http://localhost:3000/contacts
3 $route['create'] = 'contacts/create'; http://localhost:3000/contacts/create
4 $route['edit/:id'] = 'contacts/edit'; http://localhost:3000/contacts/edit/1
5 $route['update/:id'] = 'contacts/update'; http://localhost:3000/contacts/update/1
6 $route['delete/:id'] = 'contacts/delete'; http://localhost:3000/contacts/delete/1

'Server Side > PHP' 카테고리의 다른 글

Geolocation으로 현재 위치 구하기 (PHP)  (0) 2023.10.02
mysql connection pool 세팅  (0) 2020.02.16
codeigniter + summernote + ajax  (0) 2019.06.21
free_result 와 close 를 써야할때  (0) 2018.09.22
php 소괄호 {} 이용 이유  (0) 2017.09.26