Wiki

Sorted by commentsX
Displaying 161-170 of 786 result(s).

Using cache in CActiveDataProvider

Created 6 years ago by StammTips7 comments – viewed 22,189 times – ( +21 / -1 ) – 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.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 4 years ago by Charles R. Portwood IITutorials7 comments – viewed 199,826 times – ( +10 / -11 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

Pjax on ActiveForm and GridView - Yii2

Created 3 years ago by SreenadhHow-tos6 comments – viewed 96,042 times – ( +13 / -1 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 4 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 25,990 times – ( +5 / -1 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

How to pass the third parameter to UserIdentity on login authentication

Created 3 years ago by Rohit SutharHow-tos6 comments – viewed 18,173 times – ( +2 / -1 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

How to learn Yii?!

Created 6 years ago by yJeroenTutorials6 comments – viewed 88,525 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.

How to insert a Simple Dialog Box

Created 6 years ago by bluyellHow-tos6 comments – viewed 30,837 times – ( +5 / -3 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

How to generate Web feed for an application

Created 8 years ago by qiangTutorials6 comments – viewed 26,814 times – ( +4 / -1 ) – version 1.1
Web feed is a data format used for providing users with frequently updated content. In this article, we describe how to use Zend_Feed, an excellent component from Zend Framework to generate Web feed for an Yii application. This article can also serve as a general guide on how to use other components in Zend Framework.

CGridView Date Range Without Cookies or Session (External Filtering)

Created 4 years ago by ezekielnoobHow-tos6 comments – viewed 15,120 times – ( +5 / -1 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

Yii HMVC

Created 4 years ago by ezekielnoobHow-tos6 comments – viewed 14,534 times – ( +5 / -2 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider