/** * 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/']); }
/** * This command get content from active sources. * */ public function actionParseAllSources() { echo Sources::parseAllSources(); }