HMVC loading URL helper problem |
[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'
[eluser]Altazar[/eluser]
The problem is solved: https://github.com/EllisLab/CodeIgniter/...ation-i18n /* in case you use it with the HMVC modular extension uncomment this and remove the other lines load the MX_Loader class */ |
Welcome Guest, Not a member yet? Register Sign In |