Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.
Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.
In this article you'll learn how to send additional form data when uploading files using XUpload widget
This wiki describes a more complex workflow using the XUpload widget
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
This tutorial assumes some basic knowledge of Yii and a functional development environment.
I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in you...
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:
Yii::app()->getClientScript()->registerCssFile($filename);
The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...
Gii provides us normally with the following code on the 'actionCreate':
public function actionCreate()
{
$model=new ModelName;
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".