PHP code example of netsiteweaver / codeigniter3-versioning

1. Go to this page and download the library: Download netsiteweaver/codeigniter3-versioning library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

netsiteweaver / codeigniter3-versioning example snippets


( ($controller == 'version') && ($method == 'release') )

$this->load->model('version_model');
$this->data['current_version'] = $this->version_model->getCurrentVersion();

public function updateVersionNotifyEmails()
{
    $value = $this->input->post('version_notify_emails');
    $this->db->set('value', $value === null ? '' : $value)->where('title', 'version_notify_emails')->update('params');
}