I have jquery lightbox working within codeigniter. All the files are in a public folder outside the application folder and it works fine. The only problem is that I have to modify the lightbox js file to give the absolute path to the plugin navigation images. And then I have to do it all again when I upload the file to a server.
What I would like to do is to use the convenient approach of the codeigniter url helper so that the image paths are relative to the site root and work the same locally as online.
Since the location of the files is public/images/image.jpg, I would have thought that a conventional approach to relative paths would have worked but, having tried mightily, it doesn’t and that might be something to do with the plugin, I don’t know.
But is there an equivalent of site_url() that will work?