yii2 - Yii 2 Running a Cron in the basic template -


i have seen instructions on running cron in advanced template, cant figure out how on basic template. have following controller in basic controllers folder.

<?php  namespace app\controllers;  use yii\console\controller;  /**  * cron controller  */ class croncontroller extends controller {      public function actionindex() {         echo "cron service runnning";     }      public function actionmail($to) {         echo "sending mail " . $to;     }  } 

i have navigated root of application , tried these comands

yii cron php yii cron 

im getting unknown comand "cron"

i know old question failed find actual answer this.

if @ code yii exec file you'll notice requires /common/config/aliases.php file console/config/main.php. can naturally change these or copy on these advanced template.

hope solves problem wanting same thing.


Comments

Popular posts from this blog

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -