Hooks...exactly what they are
Posted
by Ygam
on Stack Overflow
See other posts from Stack Overflow
or by Ygam
Published on 2010-03-08T08:28:52Z
Indexed on
2010/03/08
8:36 UTC
Read the original article
Hit count: 508
I have seen hooks in Kohana PHP framework, and they work as some sort of a callback function triggered by a certain event (Kohana's events that is, some sort of method overloading).
I have seen hooks in Wordpress, and I don't know what they are or how to use them (just saw them yesterday).
I'm looking for events in "non-frameworked" php, I cannot find ones.
Do hooks work only in an "event-based" environment? What are they anyway (in general, not just in PHP)? What are they good for if not in an "event-based" environment.
© Stack Overflow or respective owner