Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$route['items']['get'] = 'items/index';
$route['items/(:num)']['get'] = 'items/show/$1';
$route['items/new']['get'] = 'items/new_item';
$route['items']['post'] = 'items/create';
$route['items/(:num)/edit']['get'] = 'items/edit/$1';
$route['items/(:num)']['put'] = 'items/update/$1';
$route['items/(:num)']['delete'] = 'items/delete/$1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.