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.

Matchbox RC2

November 25, 2007 2:24pm

Subscribe [65]
  • #391 / Oct 05, 2009 1:29pm

    bd3521

    48 posts

    Have you tried doing a clean install of Matchbox and CI?

    Correct, I tried a clean install of CI.
    The solution turned out to be removing the “index.php” file from the CI config.

  • #392 / Oct 05, 2009 1:53pm

    zdknudsen

    305 posts

    Glad you fixed it (:

  • #393 / Oct 13, 2009 5:30am

    Ohrigjanec

    3 posts

    Hi!!

    I made module with Matchbox.

    Now, how can I load it from my application controller?

    Thanks, Viktor

  • #394 / Oct 14, 2009 2:19am

    zdknudsen

    305 posts

    You don’t load modules from controllers, read the wiki. (:

  • #395 / Oct 14, 2009 4:09am

    Ohrigjanec

    3 posts

    Yes I realized that. Thanks a lot.

    Best Regards

  • #396 / Nov 11, 2009 11:11pm

    Kon Wilms

    5 posts

    This may be a dumb question but I am looking to modularize a number of libraries I am using. I would like to autoload some of them from the application/config.php’s autoload and not the module’s autoload.

    I gave it a test whirl and no dice -

    $autoload['libraries'] = array('cli'=>'CLI'));

    I get a matchbox error, e.g.

    Matchbox: Unable to load the requested class: cli

    where modules/cli/libraries/CLI.php exists.

    Other modules are working fine so it is not an installation issue.

    Is this even possible? =)

  • #397 / Nov 19, 2009 5:25pm

    industrial

    20 posts

    Hi!

    Firstly, thanks for a great contribution!

    After switching to Strict, I have a really hard time loading up libraries and other stuff now from inside a module controller.

    When executing this code:

    $this->load->module_library(APPPATH, 'firephp');

    I get this error:
    An Error Was Encountered
    Matchbox: Unable to load the requested class: firephp

    Notable is however that I have moved the application directory outside system and everything else works like a charm. I have also printed out APPPATH and verified that it points to the correct directory.


    What can i do?

  • #398 / Nov 20, 2009 5:52pm

    industrial

    20 posts

    Hi!

    Firstly, thanks for a great contribution!

    After switching to Strict, I have a really hard time loading up libraries and other stuff now from inside a module controller.

    When executing this code:

    $this->load->module_library(APPPATH, 'firephp');

    I get this error:
    An Error Was Encountered
    Matchbox: Unable to load the requested class: firephp

    Notable is however that I have moved the application directory outside system and everything else works like a charm. I have also printed out APPPATH and verified that it points to the correct directory.


    What can i do?

    I finally made it work, by correcting the APPPATH value in index.php. Thanks again for the great contribution!

  • #399 / Nov 20, 2009 6:30pm

    aptereket

    8 posts

    Thank you for continuing work on Matchbox.
    When will be RC3?

  • #400 / Jan 08, 2010 2:42pm

    eokorie

    69 posts

    HI Zach,

    If you are still working on this, is there a way to remove the module name from the url.  At the moment in order to access a module, the current structure is module/controller/function.  Is there a way I can skip the module and access the controller and its functions without breaking the application itself.  I have tried to modify the routes.php file in the module its but so far, not having any luck.

    Thanks

    Update: on second thought, doubt would work…  so never mind…

  • #401 / Jan 15, 2010 10:43am

    Dinesh Shah

    5 posts

    H!

    I have just started with Matchbox (RC2)

    I have created a module and in that I am using

    $this->uri->slash_segment(1) . "select_report";

    I expect that it return the URI ”/module_name/controller/select_report”

    However, this gives ”/controller/select_report”` and module name is missing.

    I have also tried

    $this->uri->slash_rsegment(1) . "select_report";

    with the same result.

    What am I doing wrong?

    Thanks in advance for your help and support.

  • #402 / Jan 27, 2010 9:23am

    gh0st

    130 posts

    I have a question.

    How do you combine an authorization layer with modules?

    Lets say you have:

    + Blog module
    + News module

    I need to make a CMS to access the modules but with an auth layer, so specific methods would be protected by an auth layer.

    Is there any documentation on the best way to combine an auth layer with modules?

    Thanks

  • #403 / Jan 27, 2010 9:37am

    adamp1

    772 posts

    You just need to add some library calls to the top of the methods which perform the auth checking. So when the method is called it checks the auth status, if not allowed it would redirect/prompt user for login.

  • #404 / Jan 27, 2010 11:33am

    gh0st

    130 posts

    Oh I see!  I think that makes sense.

    As I understand it, my modules would act like so?

    modules
    - blog
    ———controllers
    ————blog.php

    And in my blog.php I just make it call the auth checking.

    But I am still confused about something.  How do you seperate the CMS and the front-end part of the modules?

    Do I put a CMS folder inside my modules too?

    modules/
    - blog/
    ———controllers/
    ————cms/
    —————-blog.php
    ————blog.php

    That seems like a lot of repetition, especially if there is a lot of modules.

    What is the correct structure?  Is it:

    /modules/cms/blog/

    But then where does the blog module itself live?

    If I get clarification of this, that’d be great!

  • #405 / Jan 27, 2010 12:05pm

    adamp1

    772 posts

    Sadly the first way is the only way I think. Otherwise you have a CMS module with a sub folder of blog.

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

ExpressionEngine News!

#eecms, #events, #releases