ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Modular Separation - PHP5 (Modules)

July 02, 2009 12:38am

Subscribe [88]
  • #16 / Oct 15, 2009 6:50pm

    Vlad0

    17 posts

    This is my steps:
    - extract a fresh CI 1.7.1 (or 1.7.2) to local server and change the base url to respect my installation dir
    - hit a base url:

    <a href="http://localhost/ci_test/">http://localhost/ci_test/</a>

    - output: welcome message with correct elapsed time (eg. Page rendered in 0.0157 seconds)

    - extract a fresh Modular Separation 11 (or 12) and put MY_Loader.php and MY_Router.php in application/libraries
    - hit a base url:

    <a href="http://localhost/ci_test/">http://localhost/ci_test/</a>

    - output: welcome message with incorrect elapsed time (at the bottom: Page rendered in {elapsed_time} seconds)

    Did anyone have a same problem with me?

    I have same problem… on clean 1.7.2 installation

  • #17 / Oct 15, 2009 7:03pm

    wiredesignz

    2882 posts

    Use version 1.4

  • #18 / Oct 15, 2009 7:21pm

    Vlad0

    17 posts

    * @copyright   Copyright (c) Wiredesignz 2009-10-17
    * @version     1.4

    im using 1.4 ...

  • #19 / Oct 15, 2009 7:33pm

    wiredesignz

    2882 posts

    Try adding parent::__construct(); to MY_Loader constructor ~line 46

  • #20 / Oct 15, 2009 7:37pm

    Vlad0

    17 posts

    Thanks…

    Now is working 😊

  • #21 / Oct 16, 2009 10:13am

    wiredesignz

    2882 posts

    Modular Separation - PHP5 version 1.05 is attached to this post.

    Fixed bug with {elapsed_time} described above.
    Added support for $this->config->load() and $this->lang->load() in modules.

    EDIT:
    deprecated file removed

  • #22 / Oct 16, 2009 11:16am

    Vlad0

    17 posts

    Did anyone tried modular separation with DMZ? It works perfect when DMZ model is in normal models folder but when is in the modules/MODULE/models cannot find it.

    I’m not sore is this right topic for this question or it need changes from DataMapper side

  • #23 / Oct 18, 2009 11:02am

    wiredesignz

    2882 posts

    Modular Separation - PHP5 version 1.06 is attached to this post.

    Added feature: Multiple module base locations.

    EDIT:
    deprecated file removed

  • #24 / Oct 19, 2009 4:01pm

    bryan2923

    2 posts

    Controllers in sub-directories are supported and resources may be cross loaded from other modules.

    How do you go about cross loading resources from other modules? How can you specify which module to load a model from?

  • #25 / Oct 19, 2009 4:29pm

    bryan2923

    2 posts

    errr my bad, I had some naming issues going on. It works as you would think $this->load->model(modulename/model);

    Nice work on this project, so far it is running very smoothly

  • #26 / Oct 19, 2009 9:48pm

    Tom Schlick

    386 posts

    i love this. so much better than Matchbox… but it would be nice if i went to the admin module via /admin it would auto load the controller that is set in the routes folder as home

    /admin/welcome

    if it already does this im retarded and cant figure it out haha

  • #27 / Oct 19, 2009 10:42pm

    wiredesignz

    2882 posts

    It does.

    Set a route in your admin module config/routes.php file as

    $route['admin'] = 'welcome';
  • #28 / Oct 19, 2009 10:46pm

    Tom Schlick

    386 posts

    oh ok that makes sense… thanks!

  • #29 / Oct 20, 2009 12:02am

    fredwu

    22 posts

    Hi wiredesignz, any plans to backport the new features back to ME-HMVC?

  • #30 / Oct 20, 2009 12:31am

    wiredesignz

    2882 posts

    Hey Fred,

    Yes Modular Extensions PHP5 version 5.2.26 will have the same features. In fact the two projects share the same codebase.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases