/** * @param null $nullOption * @return array */ public static function selector($nullOption = null) { $out = Lang::find()->select('name')->indexBy('id')->column(); if ($nullOption) { $out = $nullOption + $out; } return $out; }
public function run() { return $this->render('lang/view', ['current' => Lang::getCurrent(), 'langs' => Lang::find()->all()]); }