public function actionIndex()
    {
        $model = Yii::createObject($this->modelClass);

        return $this->render('index', ['routes' => $model->getAvailableAndAssignedRoutes()]);
    }
public function actionIndex()
    {
        $model = Yii::createObject($this->modelClass);

        return $this->render('index', ['routes' => $model->getAvailableAndAssignedRoutes()]);
    }
public function actionIndex ( ) { $ model = Yii :: createObject ( $ this -> modelClass ) ; return $ this -> render ( 'index' , [ 'routes' => $ model -> getAvailableAndAssignedRoutes ( ) ] ) ; }
Lists all Route models.

@return mixed
Lists all Route models .