CodeIgniter Forums
Matchbox RC2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Matchbox RC2 (/showthread.php?tid=4444)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


Matchbox RC2 - El Forum - 02-05-2008

[eluser]Ethan Dunham[/eluser]
I found a small bug in your code (it tripped me up anyway). In your libraries/router.php file around line 1180,
Code:
// {{{ Matchbox

        foreach ($autoload['model'] as $key => $value) {
            if (is_string($key)) {
                $this->module_model($key, $value);
            } else {
                $this->model($value);
            }
        }

        // }}}

should have a check to see if that $autoload var exists.
Code:
// {{{ Matchbox

if (isset($autoload['model']) AND count($autoload['model']) > 0)
        {
        foreach ($autoload['model'] as $key => $value) {
            if (is_string($key)) {
                $this->module_model($key, $value);
            } else {
                $this->model($value);
            }
        }
}
        // }}}


Thanks, BTW, I have used Matchbox to create a pretty cool drop-in admin backend.. Add a module folder and a tab appears in the admin section. Awesome stuff.


Matchbox RC2 - El Forum - 02-06-2008

[eluser]zdknudsen[/eluser]
[quote author="Canglan" date="1202246090"]As I understand it (and I could be wrong), the portion of the app which uses GPLed components should be released and contributed back to the community. I am pretty sure clients wouldn't want their website (even if it's only part of it) to be published on the Internet. Smile[/quote]

Oh, I thought you only had to keep it open-source if you did any modifications to the Matchbox code itself, and even then, only the Matchbox part.

Can anyone with a little insight tell enlighten us on this?

Ethan: Thanks Smile I'll update the beta files soonish.


Matchbox RC2 - El Forum - 02-06-2008

[eluser]zdknudsen[/eluser]
Canglan: Good news. This is what the FAQ on gnu.org says:

Quote:Does the GPL require that source code of modified versions be posted to the public?

The GPL does not require you to release your modified version, or any part of it. You are free to make modifications and use them privately, without ever releasing them. This applies to organizations (including companies), too; an organization can make a modified version and use it internally without ever releasing it outside the organization.

But if you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program's users, under the GPL.

Thus, the GPL gives permission to release the modified program in certain ways, and not in other ways; but the decision of whether to release it is up to you.

Also updated the Matchbox beta (to revision 192), which fixes a few bugs (including Ethan's). Download here:
http://matchbox.googlecode.com/files/Matchbox-0.9.3-Beta-r192.zip


Matchbox RC2 - El Forum - 02-07-2008

[eluser]Lone[/eluser]
Zacharias, I just wanted to give you a big personal thanks for releasing this contribution - Matchbox has been an absolute godsend to us for the CMS that we are currently developing.

You have done some brilliant work and we'll be certain to contribute back to Matchbox if we find any suggestions or bugs.

Took me a lil while to get my head around it - but that was because everything was so auto-magical and I couldn't believe it would work in the first place!


Matchbox RC2 - El Forum - 02-07-2008

[eluser]sophistry[/eluser]
lone... how about releasing some modules that work with matchbox? ;-)


Matchbox RC2 - El Forum - 02-07-2008

[eluser]wiredesignz[/eluser]
@Zach: I can't find Base4.php in the download dude. Tongue


Matchbox RC2 - El Forum - 02-07-2008

[eluser]Lone[/eluser]
@sophistry: We might do that down the track - specifically things like a document manager etc.

The biggest woe for releasing 'modules' is what database/authentication to use for a module that can be common amongst multiple. Sure you can do its own authentication but then that limiting it usability with other 'modules'. I suppose you could get crafty and have some config settings for it though Tongue


Matchbox RC2 - El Forum - 02-08-2008

[eluser]zdknudsen[/eluser]
Lone: Thanks for the kind words. I for one hope to see some modules released to the public. (I'd better get something up and running where people can add their modules).

Regarding the db/auth I might create some abstraction layer down the road.. Just a thought.

wiredesignz: Sorry I haven't updated the documentation, but as of the beta, you no longer need a Base4.php - go me! No thanks to the evilish devs (see signature). Tongue

So just upload the libraries and config file and youre good to go.

EDIT: I've updated the documentation a bit.


Matchbox RC2 - El Forum - 02-08-2008

[eluser]wiredesignz[/eluser]
Very cool thanks Zach. Fewer core hacks make for better compatibility anyway. Good Job man.


Matchbox RC2 - El Forum - 02-08-2008

[eluser]adamp1[/eluser]
Well I just tired out matchbox, and so far its great. Checking out the error logs I'm gettin quite a few severity warnings about a function used in the Loader class.

Code:
DEBUG - 2008-02-08 23:39:28 --> Config Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Hooks Class Initialized
DEBUG - 2008-02-08 23:39:28 --> URI Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Matchbox Class Initialized
DEBUG - 2008-02-08 23:39:28 --> No URI present. Default controller set.
DEBUG - 2008-02-08 23:39:28 --> Router Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Output Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Input Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Global POST and COOKIE data sanitized
DEBUG - 2008-02-08 23:39:28 --> Language Class Initialized
DEBUG - 2008-02-08 23:39:28 --> Loader Class Initialized
ERROR - 2008-02-08 23:39:29 --> Severity: Warning  --> func_get_arg():  Argument 1 not passed to function E:\xampplite\htdocs\new\system\application\libraries\Loader.php 550
DEBUG - 2008-02-08 23:39:29 --> Helpers loaded: url
ERROR - 2008-02-08 23:39:29 --> Severity: Warning  --> func_get_arg():  Argument 1 not passed to function E:\xampplite\htdocs\new\system\application\libraries\Loader.php 550
DEBUG - 2008-02-08 23:39:29 --> Helpers loaded: form
DEBUG - 2008-02-08 23:39:29 --> Database Driver Class Initialized
ERROR - 2008-02-08 23:39:29 --> Severity: Warning  --> func_get_arg():  Argument 2 not passed to function E:\xampplite\htdocs\new\system\application\libraries\Loader.php 238
DEBUG - 2008-02-08 23:39:29 --> Session Class Initialized
DEBUG - 2008-02-08 23:39:29 --> Controller Class Initialized
ERROR - 2008-02-08 23:39:29 --> Severity: Warning  --> func_get_arg():  Argument 3 not passed to function E:\xampplite\htdocs\new\system\application\libraries\Loader.php 466
DEBUG - 2008-02-08 23:39:29 --> File loaded: E:\xampplite\htdocs\new/system/application/views//welcome_message.php
DEBUG - 2008-02-08 23:39:29 --> Final output sent to browser
DEBUG - 2008-02-08 23:39:29 --> Total execution time: 1.5982

Thats the full debug information for a load of the just the basic CI welcome page. Looking at like 550 in the Loader.php its not liking func_get_arg(). I haven't had time to look into it much since my eyes are closing and sleep is calling. Has anyone seen the same? Just wondering if this is known about. I know it doesn't cause any fatal errors but writing 4 lines to the log file on every page load isn't great.

As said will look into tomz but maybe some of you chaps in the US may get a chance to look into it before then.

Other than that, This library is a god send. I thought it would be pain moving my application accross but it was so easy and now things are in nice folders and all neat.

Thank you so much