BEST Offers , For All Sximo 5 LTS licence Holer , Upgrade Licence For only $14 Normal Price on Codecanyon $31
New product Sximopress ( Wordpress Builder ) 1.0 has been realesed . download it now !

S5 Ultimate

The Real PHP Application Makers

Call Action

There 4 option Call back Before Save , After Save , Before Delete , After Delete

Before Save

It can be used for execute other function or format data post before save it to datatbase
$this->crudengine->table( $config['table'])->builder( $config )
->button( implode(',',$access) )
->call_action('before_save',function() {
    // Do what you need to do 
    /* example return data before saved to database*/
    if(isset($_POST['submit']))
    {
        $data = [];
        $data['date'] = strtotime($_POST['date']);
        return $data
    }
    
    /* example Execute external function */
    $this->myFunction();

})
->render();

After Save

 $this->crudengine->table( $config['table'])->builder( $config )
->button( implode(',',$access) )
->call_action('after_save',function() {
    // Do what you need to do 

})
->render();

Before Delete

$this->crudengine->table( $config['table'])->builder( $config )
->button( implode(',',$access) )
->call_action('before_delete',function() {
    // Do what you need to do 

})
->render();

After Delete

$this->crudengine->table( $config['table'])->builder( $config )
->button( implode(',',$access) )
->call_action('after_delete',function() {
    // Do what you need to do 

})
->render();

Please Register Purchased Code for full access Docs


Last Update : 2017-10-14 06:59:12