Exemple #1
0
 /**
  * @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;
 }
Exemple #2
0
 public function run()
 {
     return $this->render('lang/view', ['current' => Lang::getCurrent(), 'langs' => Lang::find()->all()]);
 }