dijo.dill
dijo.dill

Hi yall, I created a plugin using Builder Plugin, now I want to run PHP script once I click create in the create form. How to do it? I am a beginner will be great is anyone could give any simple solution. Thanks in advance.

daftspunk
daftspunk

Hello!

In your controller you can override these methods to run PHP code...

/**
 * formBeforeCreate is called before the creation form is saved
 * @param Model
 */
public function formBeforeCreate($model)
{
}

/**
 * formAfterCreate is called after the creation form is saved
 * @param Model
 */
public function formAfterCreate($model)
{
}

I hope this helps!

dijo.dill
dijo.dill

Thanks a lot. It really helped!!

1-3 of 3