Wiki

Sorted by ratingX
Displaying 91-100 of 597 result(s).

How to show ajax delete status in CGridView like flash messages

Created 2 years ago by hasanaviHow-tos12 comments – viewed 29,166 times – ( +20 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Using filters with CGridView and CArrayDataProvider

Created 2 years ago by marcovtwoutHow-tos30 comments – viewed 39,889 times – ( +20 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Implementing cron jobs with Yii

Created 3 years ago by samdarkHow-tos5 comments – viewed 44,988 times – ( +29 / -1 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

How to learn Yii?!

Created 2 years ago by yJeroenTutorials9 comments – viewed 55,162 times – ( +19 ) – version 1.1
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

How to validate CSRF token with session

Created 2 years ago by yangmlsHow-tos0 comments – viewed 28,247 times – ( +19 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Clean JavaScript code in your views

Created 7 months ago by nineinchnickTutorials5 comments – viewed 10,681 times – ( +19 )
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

Using CJuiDatePicker for CGridView filter

Created 2 years ago by softarkHow-tos12 comments – viewed 27,485 times – ( +19 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Theming your Zii Widgets

Created 3 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 38,193 times – ( +19 ) – version 1.1
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

CKEditor Integration (includes steps for file uploads) - Step by Step

Created about a year ago by shulmeHow-tos9 comments – viewed 24,651 times – ( +19 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

Using cache in CActiveDataProvider

Created 2 years ago by StammTips7 comments – viewed 13,036 times – ( +19 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.