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]
  • #316 / May 24, 2011 1:53pm

    hungnm144

    7 posts

    i have module A with library L1, and i want to use library L1 in module B, how to access library L1 in module A from module B?

    in module A

    $this->load->library(‘module_b/library_l1.php’);

  • #317 / Jun 16, 2011 7:39pm

    getSurreal

    14 posts

    Am I the only one who hates these massive threads?  This module needs it’s own discussion group where each question can be a new topic.  Don’t make everyone read a 32+ page thread to try learn this module.

  • #318 / Jun 16, 2011 7:44pm

    wiredesignz

    2882 posts

    @Sir Dali, Why don’t you create the discussion group yourself instead of telling people what to do?

  • #319 / Jun 16, 2011 7:47pm

    getSurreal

    14 posts

    @wiredesignz, Why would I do that?  I don’t own the project and I’m not even a user of it yet.  I was wanting to investigate it and having a 32 page thread to read through did not encourage me.

  • #320 / Jun 16, 2011 8:14pm

    wiredesignz

    2882 posts

    @Sir Dali, I recommend that you try to use Modular Extensions HMVC based on the information in the wiki on Bitbucket (see my signature) and then, when you have difficulty, do a search in the forums, or better yet ask a question.

  • #321 / Jul 01, 2011 7:14am

    AndrewMalachel

    24 posts

    This Library is great!!!

    I’d have tested in my web, and it works fine…
    It’s easier now to separate my works… :D

    But I wonder, can I do the same with the core folder?

    Here’s what I mean,
    If I had :

    - application
    -- core
    .....
    -- modules
    --- admin
    ---- controllers
    ---- models
    ---- views
    --- api
    ---- controllers
    ---- models
    ---- views
    --- helptext
    ---- controllers
    ---- models
    ---- views

    I would like to have different core MY_Controller.php for every module that I had, since every modules had different behaviors.
    (example: api needs oauth authentication, admin need super privilege, and helptext need only to display plain text)

    Edited:
    I can only do that in the application/core folder with different controller files (admin_controller.php, api_controller.php, help_controller.php) but not in the /modules/[module]/core

    Is there a way?

  • #322 / Nov 15, 2011 6:34pm

    cucurigu

    1 posts

    Is there a way to extend one module controller/model in another module?

  • #323 / Mar 23, 2012 6:12am

    npCoda

    13 posts

    Can it be implemented in Version 2.1.0? As I am new to CI.

  • #324 / May 03, 2012 2:04am

    Abdelouahab

    8 posts

    Can it be implemented in Version 2.1.0? As I am new to CI.

    me to

  • #325 / Mar 01, 2013 1:46am

    jt3angga

    1 posts

    How to implement struckture like this

    application
    -config
    -etc
    -modules
    —plc
    —-plc_test
    ——controllers
    ——-plc_test.php
    —-plc_test2
    ——controllers
    ——-plc_test2.php
    —ga
    —-ga_test
    ——controllers
    ——-ga_test.php
    —-ga_test2
    ——controllers
    ——-ga_test2.php
    —-etc

    The PLC folder, GA Folder its a variable.

    Thanks Before 😊

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

ExpressionEngine News!

#eecms, #events, #releases