route |
[eluser]anyamanggar[/eluser]
i want edit my data with form, the url like this : http://localhost/mitra/edit/41.html as to what to code for the route, like this ? : $route['edit/(:any)'] = 'web/edit/view';
[eluser]nagata[/eluser]
$route[‘edit/(:any)’] = ‘web/edit/view’; would mean it is like [domain]/index.php/edit/41 to make it without index.php it would require more advanced configuration of CI AND Server. to reach the /mitra/ its simply $route[‘/mitra/edit/(:any)’] = ‘web/edit/view’; and about the .html, not sure if its possible at all, and if is would require extra .htaccess configurating... |
Welcome Guest, Not a member yet? Register Sign In |