Exemplo n.º 1
0
 /**
  * Parsing all an active existing Sources model.
  * If Parsing is successful, the browser will be redirected to the 'index' page and flash message.
  */
 public function actionParseAllSources()
 {
     $result = Sources::parseAllSources();
     Yii::$app->session->setFlash('sourceParseResult', $result);
     $this->redirect(['/admin/']);
 }
Exemplo n.º 2
0
 /**
  * This command get content from active sources.
  *
  */
 public function actionParseAllSources()
 {
     echo Sources::parseAllSources();
 }