title: Running a cron in Yii2
body: <p>I'm using the advanced template application of yii2 and i want to create a cron.
  I could find only little information while googling the subject and so far found that cron jobs should go in the console folder.</p>
  
  <p>my structure:</p>
  
  <pre><code>backend/
  . 
  .
  .
  console/
      models/
          Subscriptions.php   // my custom table model
      .
      .
      .       
      controllers/
          TimelineController.php
      .
      .
      .
  </code></pre>
  
  <p>I don't know where to go from now or how to proceed? How can I run the cron?</p>
  
  <p>LAMP environment.</p>