Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3375

[extension] undefinedor/smart-rest

$
0
0

SmartRest

  1. Purpose
  2. Installation
  3. Usage

Purpose

The controller of `yii\rest\urlRule` must be set. So you have to set this property when you add a controller. This project sloved it.

Installation

The preferred way to install this extension is through Composer . composer require undefinedor/smart-rest

Usage


 'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' => true,
            'rules' => [
                ['class' => 'SmartRest\UrlRule'],
            ],
        ],


Viewing all articles
Browse latest Browse all 3375

Trending Articles