Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!defined('BASEPATH'))
- exit('No direct script access allowed');
- class Cron extends CI_Controller {
- public function __construct() {
- parent::__construct();
- if (!$this->input->is_cli_request()) {
- die('No access');
- }
- }
- public function test() {
- $this->load->model('test');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement