Reading the doc
Almost all the information you need whilst working with yii is written in the Class Reference.
Almost all the information you need whilst working with yii is written in the Class Reference.
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
I'm developing a web project for a company using Yii framework. We are using a git vcs in our development process. We like to use Yii extensions. But only if they are good.
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)
Note: Before reading this wiki you should have read the caching part in the Yii guide
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.
The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article [Redefine PHP class methods or class](http://stackoverflow.com/questions/137006/ph...
Create param.php file in protected/config
Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active
Example settings when using Gettext for i18n.
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。
This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.
We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:
There are cases that you want to make an ajax request to another server and get the results.
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.
It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)
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: