octoberCMS | extra actions during creation into plugin created on "Builder" -


imagine have plugin gallery made on builder, , after creation of slide want actions...

imagine want create slide changes plugin... (after redirect /update/:id)

so understand need extend constructor?

i need adding class <body>...

here's example:

public function update($id) {     $this->bodyclass = 'compact-container';     return $this->asextension('formcontroller')->update($id); } 

this function called before generation of page, , need similar after creation of "slide"

i have analyzed file modules/backend/behaviors/formcontroller.php , found these functions, can me actions after , before creating things on plugins:

/**  * called before creation or updating form saved.  * @param model  */ public function formbeforesave($model) { }  /**  * called after creation or updating form saved.  * @param model  */ public function formaftersave($model) { } 

all need do, put function controller's file


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -