1. Home
  2. Docs
  3. Customizing with PHP
  4. Hooks
  5. Schema (XML or HJSON)

Schema (XML or HJSON)

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"}

How can we help?

Leave a Reply