Files
php_task_1/application/controllers/Cli/Migration_cron_controller.php
T

34 lines
691 B
PHP
Raw Normal View History

2022-06-30 05:46:02 -04:00
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
/**
* Abstract Controller
*
* @copyright 2019 Manaknightdigital Inc.
* @link https://manaknightdigital.com
* @license Proprietary Software licensing
* @author Ryan Wong
*
*/
class Migration_cron_controller extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->library('migration');
if ($this->migration->current() === FALSE)
{
print_r($this->migration->error_string());
} else {
echo 'Complete';
exit;
}
}
}