Hello,
I want to code plugin system.
I want to code a class for this job and on where I want add hook.
E.g:
My plugins are like
$info['plugin_hook'] is my plugin hook (e.g: register)
I want to do this job:
on __construct() of class I check my database and I will find active plugin and I can include them now How can I run their function? (function simple() is plugin function)
and What should I write on addHook(); function ?
(All plugins are in folder by the name plugins in root dir)
I think I do not explain it very good.