verburlmanager simple extension to handle http methods in rules - useful for rest applications

  1. Requirements
  2. Usage
  3. Version

Use http methods/verbs in your application rules

Note: Starting from Yii 1.1.7 this functionality is included in the core framework and should be considered obsolete.


Yii 1.1 or above


Im assuming its not the first time you are using yii's UrlManager

To set up, download the file attached, put it in your components folder or any other folder imported in your initial configuration and then in your configuration options (configs/main.php probably) add the following line

         'class'=>'VerbUrlManager',//this line
         //or 'class'=>'application.extensions.verburlmanager.VerbUrlManager'

and then setup your routes

//rules applied to all kind of requests if a specific verbs/method rule does not match/trigger first
        //rules for post requests
        //rules for put requests
        //case insensitive
        //rule is a string, which means that all requests go to a fixed route 

suport/forum link


version 0.2 = fixed bug that was causing string/fixed routes not to work properly

version 0.1 = little bug fixed that was causing it to doesnt trigger the routes sometimes


If you like it please vote

8 1
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: Gustavo
Created on: Dec 19, 2010
Last updated: 9 years ago


show all

Related Extensions