Overriding libraries
Dave Moore <[email protected]>
| Newsgroups | gmane.comp.web.gallery.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to write a module that will loosen some of the restrictions
from the kohana library Input.php
gallery3/system/libraries/Input.php
I see the gallery module overrides Input.php with:
gallery3/modules/libraries/MY_Input.php
In troubleshooting I have added a
echo("test");
to the function in gallery3/modules/libraries/MY_Input.php and that works.
So I know that function is overriding the
gallery3/system/libraries/Input.php So far so good.
I remove gallery3/modules/libraries/MY_Input.php and place it in my
modules libraries directory and and activate my module and it does not work.
gallery3/modules/floridave/libraries/MY_Input.php
Why does this not work in the floridave module but does in the gallery
module?
Is there additional code required other than extending the class and
renaming the file with MY_ prefix?
Next question is can there be 2 MY_Input.php files that are read and
used by the cascading kohana magic?
Cheers!
Dave
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
__[ g a l l e r y - d e v e l ]_________________________
[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]