modules/api/v1/controllers/TrialController.php
/**
     * Lists all Brand models.
     * @return mixed
     */
Lists all Brand models.
@return mixed
Lists all Brand models . @return mixed
public function actionIndex()
    {
        $model = new $this->searchModelClass;
        $requestParams = Yii::$app->getRequest()->getBodyParams();
        if (empty($requestParams)) {
            $requestParams = Yii::$app->getRequest()->getQueryParams();
        }
        return $model->search($requestParams);
    }
public function actionIndex ( ) { $ model = new $ this -> searchModelClass ; $ requestParams = Yii :: $ app -> getRequest ( ) -> getBodyParams ( ) ; if ( empty ( $ requestParams ) ) { $ requestParams = Yii :: $ app -> getRequest ( ) -> getQueryParams ( ) ; } return $ model -> search ( $ requestParams ) ; }
Lists all Brand models.
Lists all Brand models .