Пример #1
0
 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();
 }
Пример #2
0
 public function run()
 {
     $markdown = file_get_contents(Yii::getAlias('@app/API.md'));
     $this->params['content'] = (new Markdown())->parse($markdown);
     return parent::run();
 }