Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2

[eluser]Armorfist[/eluser]
Nice addition Sam. Can someone give me a feedback about this mod: http://ellislab.com/forums/viewthread/81...10/#483409

Thanks

[eluser]Sam Dark[/eluser]
Reviewed your code. As I can see, it's not breaking anything.
The one question is why do you need to load language from another module.

[eluser]Armorfist[/eluser]
I need to load them from a library in the application. In my CMS backend, to generate the menus, I run trough all modules the user has access to and load the language file in each module with info about what name to give each menu item.

Also, I have a Users and Permissions module and the Users module accesses a model from the Permissions.

Besides that, who knows when this can come in handy to prevent code repetition Wink

[eluser]Sam Dark[/eluser]
I think it's a pretty typical usage of ME so deprecation of loading resources from another modules is really a question…

[eluser]wiredesignz[/eluser]
Modular Extensions version 5.1.39 is available on the wiki.

The ME Loader class is now extendible using MX_Loader.
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Modular Extensions loader class extension
*
* install this file as application/libraries/MX_Loader.php
*
**/
class MX_Loader extends Loader
{
        
}
Do not use a constructor.

[eluser]Sam Dark[/eluser]
Very smart Wink

What do you think about my addition to MY_Router?

btw., you haven't noted about ME is now using full paths in errors. Very useful.

[eluser]wiredesignz[/eluser]
Thanks Sam. Wink

The Router should never be used to scan directories for files other than controllers.

[eluser]Sam Dark[/eluser]
But it is in native CI. Do you have another way to achieve it?

[eluser]wiredesignz[/eluser]
I'm sure there is a better way to do this. I just can't think of it right now. :lol:

[eluser]bugboy[/eluser]
hi all

Just been messing around with the new version of CI 1.7 and the php5 version of modular extension. I followed the wiki on how to install this to the letter but for some reason i cannot load the view file welcome_message.php.

I did try and do a search on this in the forum but nothing came up.

Anyone else had this issue or am i being dafted and missed something completely.

If this has already been asked sorry but i couldn't find anything.




Theme © iAndrew 2016 - Forum software by © MyBB