yii rights some tips..
yii rights some tips..
Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.
change your index.php
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
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)
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.
There are cases that you want to make an ajax request to another server and get the results.
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.
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.
The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.
yii-1.1.8.r3324 framework directory is 10.4 mb size.
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。
Create param.php file in protected/config
Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
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
Here are all wiki articles from "Understanding" series by Yii wiki contributors:
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.
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?