Re: Overriding libraries
Romain LE DISEZ <[email protected]>
| Newsgroups | gmane.comp.web.gallery.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Dave,
you can have a look at the user_chroot module:
https://github.com/rledisez/gallery3-contrib/blob/master/3.0/modules/user_chroot/helpers/MY_url.php
(line 27-30)
It overrides the MY_url.php file. It is clearly ugly, but it can help
you. I'm not sure it will apply to your case, because it depends the way
Input class is loaded.
Cheers.
Le 16/04/12 05:53, Dave Moore a écrit :
> 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 ]
--
Romain LE DISEZ
------------------------------------------------------------------------------
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 ]