| Recommend this page to a friend! |
| Packages of Rafa Rodriguez | Div PHP Template Engine | docs/Features/Hooks.md | Download |
|
|||||||||||||||||||||
The hooks are methods that can be implemented by the programmer in a class that inherit from div. This methods will be executed by div in some events. For example, before or after parse of template. At the moment, the hooks are beforeBuild, afterBuild, beforeParse and afterParse. In the beforeBuild hook, you can modify the $src and $items optional parameters of the div constructor. Example: index.php
index.tpl
Output |