There are a couple of ways to achieve this, but the first is preferred.
There are a couple of ways to achieve this, but the first is preferred.
In addition to the opcode cache, APC can also serve as a user cache for Yii via [CApcCache]. It should be noted that this will make APC's memory needs less predictable.
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider
using CDbCriteria
to get data from parent and 1:n child table with a condition on the child table.
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.
class CommentController extends CController {
public function filters()
{
return array( 'accessControl' ); // perform access control for CRUD operations
}
Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.
I found a better solution.
>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.
We can use a CJuiDatePicker for a CGridView inline filter.
To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)
While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.
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 wiki I will show how could use a CSqlDataProvider in CGridView with specific features
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.
Here you learn to create and set a simple ahref-link to logout the current user.
I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.