To compile PHP hooks in your App, you need to define it in the Schema with the parameter add_hooks of the behavior GoatCheese.
add_hooks takes JSON as value.
To add a AfterFormObj Hook to the project and template model.
<parameter name="add_hooks" value='{
"afterFormObj":["project", "template"]
}'/>myproject1:
{
add_hooks:{
"afterFormObj":["template", "project"]
}
}Add all hooks!
add_hooks:{"full":"yes"}
