I need help with the CodeIgniter routes... |
in routes:
PHP Code: $route['produto/(:num)/(:any)'] = 'produto_controller/show/$1/$2'; in controller: PHP Code: public function show($id = NULL, $title = NULL) { Honestly though, you shouldn't need to search by the title if you have the ID.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
|
Messages In This Thread |
I need help with the CodeIgniter routes... - by JoelPiccoli - 11-20-2015, 04:11 AM
RE: I need help with the CodeIgniter routes... - by stuart8972 - 11-20-2015, 05:08 AM
RE: I need help with the CodeIgniter routes... - by albertleao - 11-20-2015, 07:29 AM
|