2017 © Pedro Peláez
 

yii-extension yiiquickswap

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

image

bogsey/yiiquickswap

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

  • Sunday, March 3, 2013
  • by bogsey
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yiiQuickSwap

A Yii module allowing the logged in user to be quickly changed to speed up application deveoplement, (*1)

Usage

Setup

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

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., (*3)

Using the module

Simply include the following code in the view file where ever you would like the menu to appear., (*4)

<?php echo $this->renderPartial('yiiQuickSwap.views.menu'); ?>

or you can point your browser to http://your.site.address/index.php?r=yiiQuickSwap, (*5)

The Versions

03/03 2013

dev-master

9999999-dev

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

  Sources   Download

BSD

by Mark Joyner

user yii