FuelCMS butts heads with Codeigniter? Well, it can... but needn't!
I'd like to use the Codeigniter img() function from the HTML helper with the FuelCMS assets_path() function from the Asset library, they look like they'd play nice together. However, using them like this:
img(assets_path($row['photo_file'], 'photos')) ;
results in a nasty url with a closing '/' from the img() function and an opening one from assets_path(), repeating the subfolder if present (eg if the application was in a subfolder of the server context eg "/folder" you get "/folder//folder/..."). Without some unpleasant substringing, is this unavoidable?
Comments
img(assets_path($row['photo_file'], 'photos', NULL, TRUE));