basic/_protected/controllers/CurrencyController.php
/**
     * Lists all Currency models.
     * @return mixed
     */
Lists all Currency models.
@return mixed
Lists all Currency models . @return mixed
public function actionIndex()
    {
            $searchModel = new CurrencySearch();
            $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
            return $this->render('index', [
                'searchModel' => $searchModel,
                'dataProvider' => $dataProvider,
            ]);
    }
public function actionIndex ( ) { $ searchModel = new CurrencySearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , ] ) ; }
Lists all Currency models.
Lists all Currency models .
//        if(Yii::$app->user->can('admin')) //        { //        } else { //            echo "Ruxsat yo'q"; //        }