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

[eluser]dexcell[/eluser]
[quote author="Johan André" date="1225464972"]Thanks wiredesign!

I been fiddling around with ME5.1 for the last couple of days and I must say it's great.
I used Matchbox before and was quite happy with it, but since testing ME I won't go back.

It's so cool to load controllers from views and it really saves me alot trouble when developing.

All my old modules works just by replacing Matchbox with ME! Even my favorite setup with my own Viewlibrary and DrFConfused reverse routing is a snap with ME! Great work!

You saved me ALOT of work! Smile[/quote]

Can you write here how to convert the project using matchbox into ME?
I'm getting frustrated because after trying with it for few hours ME looks like doesn't work at all .
Actually i would like to follow the joy like the rest Sad

[eluser]dexcell[/eluser]
sorry double

[eluser]wiredesignz[/eluser]
Modular Extensions 5.1.38 is now available on the wiki.

optimized modules::find and fixed a database loader bug.

[eluser]Sam Dark[/eluser]
-=ZaRaZa=- from Russian community reported this one (HMVC 5.1.x):

Code:
class Blog extends Controller {
  function index(){
    $this->load->module('news')
    $this->parser->parse('tpl', array(), TRUE);
  }
}

Parser will be called in the scope of news instead of current.

I haven't checked it yet.

[eluser]wiredesignz[/eluser]
@Sam, Actually it would run in context of the first controller loaded.

Parser uses get_instance() to call load->view() and output->append_output()

[eluser]Sam Dark[/eluser]
Well… maybe overriding get_instance can help?

[eluser]wiredesignz[/eluser]
How will it help Sam?. override_function is part of the Advanced PHP debugger (APD), it's not core PHP.

[eluser]Sam Dark[/eluser]
Ow, sorry…

[eluser]wiredesignz[/eluser]
I will do a few tests and find a solution Sam. Thanks Wink

[eluser]Sam Dark[/eluser]
Useful contribution for MY_Router.
Initial idea by -=ZaRaZa=-.

What's it adds
It adds ability to add routes from within routes.php config located in your module. Global routes.php is still the boss allowing to remap default routes defined in your modules.

Code
Code:
function _set_routing()
{
  //All code below is a copy-paste from CI_Router.
        
  // Load routes from ME modules
  $modules = dir(MODBASE);
  while (false !== ($module = $modules->read())) {
    if($module != '.' && $module != '..'){
      @include(MODBASE.$module.'/config/routes'.EXT);
    }          
  }
  $modules->close();
  
  //End of code addition
  //Following code is a copy-paste from CI_Router.
        
  // Load the routes.php file.
  @include(APPPATH.'config/routes'.EXT);

  //etc.

Hope this will make it's way into ME.




Theme © iAndrew 2016 - Forum software by © MyBB