Wiki

Sorted by ratingX
Displaying 81-90 of 784 result(s).

Using CJuiDatePicker for CGridView filter

Created 5 years ago by softarkHow-tos21 comments – viewed 51,165 times – ( +27 / -1 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Saving CGridView filter

Created 3 years ago by sefburhanTutorials5 comments – viewed 8,039 times – ( +27 / -1 ) – version 1.1
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

How to use a Widget as an Action Provider

Created 6 years ago by Antonio RamirezHow-tos15 comments – viewed 42,515 times – ( +27 / -1 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 3 years ago by Kartik VTutorials24 comments – viewed 143,858 times – ( +56 / -5 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

How to log changes of ActiveRecords?

Created 8 years ago by pfthTutorials7 comments – viewed 47,535 times – ( +41 / -3 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

X-Sendfile - serve large static files efficiently from web applications

Created 6 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 63,061 times – ( +26 / -1 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

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

Created 4 years ago by shulmeHow-tos12 comments – viewed 57,153 times – ( +26 / -1 ) – 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:

Authenticating against phpass hashes with Yii

Created 5 years ago by Da:SourcererHow-tos18 comments – viewed 27,857 times – ( +26 / -1 ) – version 1.1
Note: This guide is outdated as of Yii v1.1.14 which introduced the CPasswordHelper class. Please use that instead.

How to learn Yii?!

Created 5 years ago by yJeroenTutorials6 comments – viewed 85,316 times – ( +25 / -1 ) – version all
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.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 6 years ago by xrxHow-tos17 comments – viewed 40,764 times – ( +25 / -1 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.