Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Plugin Hooks for a PHP application
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Plugin Hooks for a PHP application
The idea of hooks is basically to execute a custom function at a certain point in time.

There are in fact many possible different ways this can be implemented.
If you want a MyBB like approach, where a plugin adds hooks, and the main script executes them, all you need to do is provide something to store the hooks (hint, an array), and something which will loop through the list and execute them.

My Blog
02-14-2008 08:03 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
RE: Plugin Hooks for a PHP application - ZiNgA BuRgA - 02-14-2008 08:03 PM

 Standard Tools
Forum Jump: