migration controller codeigniter

Admin Posted on: 1 minggu yang lalu



class Migration extends CI_Controller {

	public function __construct() {
        parent::__construct();
         $this->load->library('migration');
    }

    public function index() {
        if (!$this->migration->current()) {
            show_error($this->migration->error_string());
        } else {
            echo 'Migration worked!';
        }
    }

}