Welcome Guest, Not a member yet? Register   Sign In
Matchbox RC2

[eluser]bd3521[/eluser]
[quote author="Zacharias Knudsen" date="1254746325"]Have you tried doing a clean install of Matchbox and CI?[/quote]

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

[eluser]zdknudsen[/eluser]
Glad you fixed it (:

[eluser]Ohrigjanec[/eluser]
Hi!!

I made module with Matchbox.

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

Thanks, Viktor

[eluser]zdknudsen[/eluser]
You don't load modules from controllers, read the wiki. (:

[eluser]Ohrigjanec[/eluser]
Yes I realized that. Thanks a lot.

Best Regards

[eluser]Kon Wilms[/eluser]
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 -

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

I get a matchbox error, e.g.

Code:
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? =)

[eluser]industrial[/eluser]
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:
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?

[eluser]industrial[/eluser]
[quote author="industrial" date="1258687513"]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:
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?[/quote]

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

[eluser]aptereket[/eluser]
Thank you for continuing work on Matchbox.
When will be RC3?

[eluser]eokorie[/eluser]
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...




Theme © iAndrew 2016 - Forum software by © MyBB