PHP program plug-in mechanism principle is generally how to achieve it? such as WordPress plugin, dz! plug-ins, etc.
thinkphp system hooks, label bit calculation plug-in, plug-in controller is what?
How to develop their own plug-ins, plug-in implementation of the principle do not understand, really tangled, have to know the help of doubts, grateful!
Reply content:
PHP program plug-in mechanism principle is generally how to achieve it? such as WordPress plugin, dz! plug-ins, etc.
thinkphp system hooks, label bit calculation plug-in, plug-in controller is what?
How to develop their own plug-ins, plug-in implementation of the principle do not understand, really tangled, have to know the help of doubts, grateful!
Write you a simple code that you understand,
php
Then add hooks via do_action, add_action implement plug-in function calls
You can see that the registered design pattern is implemented with this