Codeigniter 4 advanced image routing issue |
I converted the Codeigniter 3 advanced image library to Codeigniter 4 but the Route is not working
Codeigniter 3 route = $route['public/image/(:any)'] = 'media/resize/$1'; Codeigniter 4 route = $routes->get('public/image/(:any)', 'Media::resize/$1'); what is the point?
(:any) is a catch all route, make sure that it is the last route in the route list.
I see nothing else wrong with your route. Also make sure you have a namespace for your new library and use Library. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |