[PT-BR] Proteção Contra Logout CSRF
CSRF é o acrônimo para Cross-site request forgery.
CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.
CSRF é o acrônimo para Cross-site request forgery.
CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.
You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps
change your index.php
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
yii-1.1.8.r3324 framework directory is 10.4 mb size.
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).
yii rights some tips..
I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales
The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
These are functions that I used very often, may helps you!
When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.
When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.