[Solved] Need Help MY_Loader Custom Setup Query |
[eluser]riwakawd[/eluser]
I am trying to set up a custom MY_Loader.php file which will let me add this link in the public index $data['header'] = $this->load->controllers('common/header'); and any other I might like to add. The word "common" is the subdirectory. I am trying to get it so can type it like so. I know it can be done but just do not know how. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
[eluser]Tpojka[/eluser]
I am not sure if this can serve your goal, but this class allows you make subfolders in controllers folder.
[eluser]riwakawd[/eluser]
[quote author="Tpojka" date="1397341254"]I am not sure if this can serve your goal, but this class allows you make subfolders in controllers folder.[/quote] How would you make it work to be able to get what I am after. I do not want to use HMVC. Trying to make it load like opencart. That's why making custom loader. I am using codeigniter and smarty.
[eluser]Tim Brownlaw[/eluser]
[quote author="riwakawd" date="1397358752"]How would you make it work to be able to get what I am after. I do not want to use HMVC. Trying to make it load like opencart. That's why making custom loader. I am using codeigniter and smarty.[/quote] Opencart uses a HMVC structure... So I'm not sure why you are against using HMVC? I looked at doing your approach some time back and the logical step was HMVC as doing it the "other" way is just painful... I think you are restricting your options for the wrong reasons! Just my 2 cents worth on the subject! Cheers |
Welcome Guest, Not a member yet? Register Sign In |