after_action_new[Permalink]after_action_new triggerThis trigger is called after the new action is successfully completed. This trigger can be defined in the table delegate class and is often used to redirect to a particular page after a new record is submitted. This should not be confused with the afterInsert? trigger, which is executed after a record is inserted into the database (this can occur multiple times per request). The after_action_new trigger is only executed once after the 'new' action has been successfully completed. i.e. a maximum of once per request. Signature
ParametersThis method takes a single associative array as a parameter. This array includes the following keys:
ExamplesExample 1: Redirect to the view tab for the inserted record
blog comments powered by Disqus
|