PHPackages                             bogsey/yiiquickswap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bogsey/yiiquickswap

ActiveYii-extension[Utility &amp; Helpers](/categories/utility)

bogsey/yiiquickswap
===================

A Yii module allowing the logged in user to be quickly changed to speed up application deveoplement

125[1 issues](https://github.com/Bogsey/yiiQuickSwap/issues)PHP

Since Mar 3Pushed 13y ago1 watchersCompare

[ Source](https://github.com/Bogsey/yiiQuickSwap)[ Packagist](https://packagist.org/packages/bogsey/yiiquickswap)[ RSS](/packages/bogsey-yiiquickswap/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yiiQuickSwap
============

[](#yiiquickswap)

A Yii module allowing the logged in user to be quickly changed to speed up application deveoplement

Usage
-----

[](#usage)

### Setup

[](#setup)

Unzip the module under ***protected/modules/yiiQuickSwap*** and add the following to your main config

```
return array(
  'modules' => array(
    'yiiQuickSwap',
  ),
  'components' => array(
    'yiiQuickSwap' => array(
      'class' => 'yiiQuickSwap.components.yiiQuickSwap',
      'users' => array('user1', 'user2'), // a list of users that you want to swap between
      'redirect' => 'application.views.site.index', // where to redirect to after the swap
    ),
  ),
)
```

Use only on developement builds as this module allows anyone to log in as the users specified in the config file without the need for a password.

### Using the module

[](#using-the-module)

Simply include the following code in the view file where ever you would like the menu to appear.

```
