![]() |
HMVC loading URL helper problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: HMVC loading URL helper problem (/showthread.php?tid=56244) |
HMVC loading URL helper problem - El Forum - 12-05-2012 [eluser]Altazar[/eluser] I've posted this twice in other threads a few days ago and no one answered. I'm not able to find what is causing problem. I have a fresh installation of latest CodeIgniter. The only modification I've done is adding HMVC and multilingual libraries. In modules' controllers I have this: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: $path = 'http://mywebsite.com/images/flags'; I'm autoloading URL helper and have tried loading it from the module's controller. If I use HTML tags a href= and img src=, everything works fine. I've also tried creating a flags module, but it does not show flags. Maybe I should make a function which extends URL helper, I have no other idea. These are my routes: Code: // URI like '/en/about' -> use controller 'about' HMVC loading URL helper problem - El Forum - 12-20-2012 [eluser]Altazar[/eluser] The problem is solved: https://github.com/EllisLab/CodeIgniter/wiki/CodeIgniter-2.1-internationalization-i18n /* in case you use it with the HMVC modular extension uncomment this and remove the other lines load the MX_Loader class */ |