Welcome Guest, Not a member yet? Register   Sign In
Route call wrong method
#4

I found another weird issue, I have this route:

[Image: P9OQOUo.jpg]

if I call it using:

PHP Code:
url: `<?= route_to('admin/media/files') ?>/${$(this).attr('data-id')}/details

in $.ajax, I wil get only "${$(this).attr('data-id')}/details`", so actually route_to return an empty value. But if I do:


PHP Code:
url: `<?= base_url() ?>/admin/media/files/${$(this).attr('data-id')}/details`, 

I get the correct url, why route_to is returning me an empty value?
Reply


Messages In This Thread
Route call wrong method - by sfarzoso - 05-03-2021, 10:37 AM
RE: Route call wrong method - by iRedds - 05-03-2021, 12:01 PM
RE: Route call wrong method - by sfarzoso - 05-04-2021, 12:37 AM
RE: Route call wrong method - by sfarzoso - 05-04-2021, 02:14 AM
RE: Route call wrong method - by iRedds - 05-04-2021, 10:45 AM
RE: Route call wrong method - by sfarzoso - 05-05-2021, 12:54 AM
RE: Route call wrong method - by paliz - 05-04-2021, 11:15 AM
RE: Route call wrong method - by InsiteFX - 05-05-2021, 05:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB