How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.
Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.
This article will explain how to create a REST API with the Yii framework.
Gii provides us normally with the following code on the 'actionCreate':
public function actionCreate()
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".