title: CodeIgniter task scheduler taking the function to the task scheduler
body: <p>I am new with CRON jobs, so I'm practicing it; for starters I am making a CRON job adding a user with CodeIgniter and PHP,
  Here is my Model:</p>
  
  <pre><code>    &lt;?php 
      class Cron_Model extends CI_Model{
  
      public function adduser($firstname,$lastname){
      $data = array(
          'firstname' =&gt; $firstname,
          'lastname' =&gt; $lastname
          );
      $query = $this-&gt;db-&gt;insert('user_account',$data);
      return $query;
         }
  
      }
  </code></pre>
  
  <p>AND : Here is my Controller:</p>
  
  <pre><code>    &lt;?php
      class Cron_Controller extends CI_Controller{
  
      public function __construct(){
      parent::__construct();
  
      $this-&gt;load-&gt;database();
      $this-&gt;load-&gt;model('Cron_Model');
  
      // this controller can only be called from the command line
      if (!$this-&gt;input-&gt;is_cli_request()) show_error('Direct access is not allowed');
  
  }
  
  public function AddAUser(){
      $fname = "JUNCEL";
      $lname = "CARREON";
  
      $this-&gt;Cron_Model-&gt;adduser($fname,$lname);
  }
  
  }
  
    ?&gt;
  </code></pre>
  
  <p>I am going to add this to the database, even though the firstname and lastname is same it's okay this is only a trial work.</p>
  
  <p>So now I am trying to call the function AddAUser() to the task scheduler,</p>
  
  <p>I've tried this thing: Browsed it on the Task Scheduler</p>
  
  <pre><code>  C:\xampp\htdocs\post\application\controllers\cron_controller.php
  </code></pre>
  
  <p>Then at the Add arguments(optional): I put the AddAUser, so basically it became like this:</p>
  
  <pre><code> C:\xampp\htdocs\post\application\controllers\cron_controller.php AddAUser
  </code></pre>
  
  <p>then I've tried running it, but I haven't seen anything in the database! What is happening?</p>