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 Extensions - HMVC version 5.4

January 29, 2011 1:58am

Subscribe [99]
  • #331 / Apr 19, 2013 5:16am

    boytun

    30 posts

    I extend all my controller with MX_Controller like this:

    application/
     + controllers/
        + main.php (extending Frontend_Controller)->load view display
     + core/
        + MY_Controller.php (extending MX_Controller) 
    +modules
        + mymodule
    +librairies
        +Frontend_Controller (extending MY_Controller) 
    +views
        +display

    but I get a page full of errors.

  • #332 / Apr 19, 2013 6:37am

    boytun

    30 posts

    When I do this I get many errors like:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: CI::$data

    Filename: MX/Controller.php

    Line Number: 58

    A PHP Error was encountered

    Severity: Notice

    Message: Indirect modification of overloaded property Page::$data has no effect

    Filename: libraries/Frontend_Controller.php

    Line Number: 10

    A PHP Error was encountered

    Severity: Notice

    Message: Indirect modification of overloaded property Page::$data has no effect

    Filename: controllers/page.php

    Line Number: 14

    And many others

  • #333 / Apr 19, 2013 6:46am

    boytun

    30 posts

    .

  • #334 / Apr 19, 2013 9:12am

    wiredesignz

    2882 posts

    @boyfun,

    Every time you post you have different classes with different class extensions and different errors. None of these errors relate to Modular Extensions HMVC directly.

    All of these errors are due to your inexperience with OOP, PHP.and CodeIgniter.

    I respectfully suggest that you do some research on the specific PHP errors you are encountering. You might actually learn something new and not have to constantly spam these forums with your problems.

  • #335 / May 10, 2013 4:34am

    quasiperfect

    132 posts

    @wiredesignz is posible to deactivate routing for some models?

    let’s say we have the modules test and test1 i would like to have http://www.domain.ext/test but not http://www.domain.ext/test1

  • #336 / May 10, 2013 4:56am

    wiredesignz

    2882 posts

    @quasiperfect,

    You can add the _remap() method to your test1 module controller and use the method to generate an error such as calling the CI show_404() function

    This would effectively make the module controller invisible to url calls but still leave it available via modules:run()

  • #337 / May 11, 2013 3:21am

    quasiperfect

    132 posts

    ty @wiredesignz that works

  • #338 / May 15, 2013 5:32am

    tim.samuelsson

    2 posts

    Is there any way to profile an application using Modular HMVC?

    I tried using CI profiler but dont get the info for modules called within the topmodule.

    //Tim

  • #339 / May 15, 2013 6:15am

    wiredesignz

    2882 posts

    @tim.samuelsson,

    Good question, I have never considered profiling modules.
    I guess a decent review of the CI_Profiler class would be needed.
    I’m open to ideas on how it might be possible.

  • #340 / Jul 25, 2013 12:31pm

    ariel_esp

    5 posts

    latest CI 3.0, 2013-07-25 crash with message when install hmvc

    An Error Was Encountered

    Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

    Log = 4
    development mode, no errors.

    DEBUG - 2013-07-25 13:28:05—> Config Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Hooks Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Utf8 Class Initialized
    DEBUG - 2013-07-25 13:28:05—> UTF-8 Support Enabled
    DEBUG - 2013-07-25 13:28:05—> URI Class Initialized
    DEBUG - 2013-07-25 13:28:05—> No URI present. Default controller set.
    DEBUG - 2013-07-25 13:28:05—> Router Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Output Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Security Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Input Class Initialized
    DEBUG - 2013-07-25 13:28:05—> Global POST and COOKIE data sanitized
    DEBUG - 2013-07-25 13:28:05—> Language Class Initialized

    ...
    I tested with clean install… just welcome module…. no changes.

    Working fine with version to 2013-07-22

    —-
    in my localserver, xampp, works =/

    using php 5.4.15


    Do you can help ?

  • #341 / Jul 26, 2013 2:18am

    XMadMax

    66 posts

    Hi Ariel,

    Normally this succeed when not exists the ‘controller’ folder. I detected it in local tests with CI 3.0.
    Also, remember that HMVC is working OK with CI 2.1, some changes must to be done to work with 3.0.


    Best, Xavier


    =========================================================================
    Try XHMVC:

    https://bitbucket.org/xperez/codeigniter-cross-modular-extensions-xhmvc

  • #342 / Jul 26, 2013 3:19am

    wiredesignz

    2882 posts

    @XMadMax,

    Your are incorrect.There is no indication of missing controller directories. This is not a problem with Modular Extensions HMVC.

    The fact is that Modular Extensions HMVC does not support CI3.0-dev because it would break compatibility with the Official release version of CodeIgniter (v2.1.4)

     

     

  • #343 / Jul 26, 2013 3:48am

    XMadMax

    66 posts

    I’m sorry wiredesignz, I only try to help other users using HMVC.

    In my test with 3.0 I detected this problem, and I have checked it with other developers.

    Of course, HMVC must to be changed to be fully functional with 3.0 and we will be very happy to have an official version.


    Best, Xavier

  • #344 / Sep 05, 2013 8:16am

    quasiperfect

    132 posts

    @wiredesignz any chance in having a reactor compatible version ?

  • #345 / Sep 05, 2013 6:08pm

    wiredesignz

    2882 posts

    @quasiperfect,

    I wasn’t going to produce a version of Modular Extensions HMVC to be compatible with CodeIgniter v3.0 until CI3.0 was released officially as this would break backwards compatibility with CI2.1.x.

    So far there hasn’t been a lot of demand for a new version and support for continued development of Modular Extensions HMVC is non-existant.

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

ExpressionEngine News!

#eecms, #events, #releases