-
Notifications
You must be signed in to change notification settings - Fork 0
Hook System
Justin Campo edited this page Oct 24, 2015
·
1 revision
##Introduction The hook system allows you to easily run code at any point in the XESM framework.
##Usage Data can be loaded via the database table : xesm_hook or by interacting directly with the hook class.
##Hook Data
hook_point = where the code will run (see below for list of possible values)
file_path = will attempt to load the string here as include file (optional)
class = the name of the class that is to be called (include namespace)
method = the name of the method that is to be called
);
##Hook Points
//here it the synonym method in the hook class which has all values in it
if ($hook_point == "start"){ $hook_point = "init"; }
else if ($hook_point == "pre_template"){ $hook_point = "pre_model"; }
else if ($hook_point == "post_model"){ $hook_point = "pre_controller"; }
else if ($hook_point == "post_controller"){ $hook_point = "pre_head"; }
else if ($hook_point == "post_head"){ $hook_point = "pre_view"; }
else if ($hook_point == "post_view"){ $hook_point = "pre_foot"; }
else if ($hook_point == "post_template"){ $hook_point == "post_foot"; }