JS and CSS URL change |
Hello,
I have a problem with a methohe from a controller. Indeed, when I call it the js and css loading path changes and they fail to load. correct path : http://localhost:8081/assets/images/logo.svg wrong path after method call : http://localhost:8081/update_user/assets...s/logo.svg Below my code PHP Code: $routes->get('/users', 'Admin/Users::index'); PHP Code: public function update_user($id) (08-21-2021, 03:37 AM)eddoh Wrote: Hello, Try PHP Code: <?= base_url('assets/images/logo.svg') ?> |
Welcome Guest, Not a member yet? Register Sign In |