help with routes |
(07-21-2015, 04:34 PM)GoncaloF Wrote: in routes.php i have: Why don't you do it like this: Code: $route['admin/orders/delete/(:any)'] = 'admin_orders/delete/$1'; For your delete method: PHP Code: public function delete($id){ And in your view: PHP Code: <a href="'. site_url('admin/orders/delete/') . $id . '" class="btn btn-info">Delete</a>
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro |
Messages In This Thread |
help with routes - by GoncaloF - 07-21-2015, 04:34 PM
RE: help with routes - by pdthinh - 07-21-2015, 08:27 PM
RE: help with routes - by Avenirer - 07-22-2015, 04:17 AM
RE: help with routes - by Dracula - 07-22-2015, 02:16 PM
|