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".
Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.
This wiki describes a more complex workflow using the XUpload widget
Gii provides us normally with the following code on the 'actionCreate':
public function actionCreate()
This article will explain how to create a REST API with the Yii framework.
Hi. This is first article with my Yii v1 tutorial. I had to split it into 2 articles as there's limited length of texts on Wiki. So once you understand basics, you can read the 2nd article here: Yii for beginners 2.