[11582] Howto redefine a single function
Sunday, 31. May 2009, 07:20:07
Every functions xxx_yyy_zzz() can be defined in a unique file xxx/yyy.php.
Application in CVT : formulaires_yyy_charger(), formulaires_yyy_verifier(), and formulaires_yyy_traiter() can be defined in a unique file formulaires/yyy.php (which uses the template formulaires/yyy.html)
What I've discovered is that the functions can be independently overwritten by the same function defined in xxx/yyy/zzz.php !
Used with the function search path, this can be really usefull when you want to override a general plugin (such as Agenda).







