public function run() { $this->params['myself'] = (object) ['name' => Yii::$app->name, 'html' => $this->loadPlain(Yii::getAlias('@app/LICENSE'))]; $this->params['depends'] = $this->loadDepends(); return parent::run(); }
public function run() { $markdown = file_get_contents(Yii::getAlias('@app/API.md')); $this->params['content'] = (new Markdown())->parse($markdown); return parent::run(); }