Location: PHPKode > projects > Agile Toolkit > atk4-atk4-addons-5a69383/misc/lib/FormAndSave.php
<?php
class FormAndSave extends MVCForm {
    function init(){
        parent::init();
        $this->addSubmit('Save');

        $this->onSubmit(function($f){
            $f->update();

            $f->js()->univ()->successMessage('Saved')->execute();
        });
    }
}
Return current item: Agile Toolkit