/** * The command "yii test/test test" will call "actionTest('test')" */ public function actionTest() { // debug info ---------------------------------------------------------- $debugInfo = print_r(['method' => __METHOD__, 'line' => __LINE__, 'test' => 'TEST'], true) . PHP_EOL; // --------------------------------------------------------------------- AppLogger::info($debugInfo, AppLogger::CATEGORY_CONSOLE); $this->stdout($debugInfo, Console::BG_YELLOW); }
public function actionIndex() { // --------------------------- TITLE ----------------------------------- $this->getView()->title .= ' :: ' . S::upperCamelize($this->action->id); // log ----------------------------------------------------------------- AppLogger::log(['method' => __METHOD__, 'line' => __LINE__, 'requestParams' => Yii::$app->request->getQueryParams()], AppLogger::WARNING, AppLogger::CATEGORY_TEST); // --------------------------------------------------------------------- return $this->render('/index/index'); }