Wiki

Articles tagged with "search", sorted by viewsX
Displaying 1-10 of 18 result(s).

CGridView, CListView and CActiveDataProvider

Created 5 years ago by softarkTutorials22 comments – viewed 123,014 times – ( +46 / -1 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Adding search to Yii blog example (using Zend Lucene)

Created 6 years ago by dckurushinTutorials21 comments – viewed 76,035 times – ( +33 / -4 ) – version 1.1
For this tutorial I will add a search to the blog demo. The search would be based on Zend Lucene.

Using standard filters in CGridView custom fields

Created 7 years ago by GOshaHow-tos4 comments – viewed 64,251 times – ( +17 / -1 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 3 years ago by softarkTutorials4 comments – viewed 54,970 times – ( +19 / -1 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 5 years ago by softarkTutorials13 comments – viewed 50,584 times – ( +34 / -1 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Searching and Sorting by Count of Related Items in CGridView

Created 5 years ago by softarkHow-tos14 comments – viewed 46,891 times – ( +33 / -1 ) – version 1.1
Let's say we have two models and relation between them:

Adding Yii Search to Your Browser Search Box

Created 7 years ago by qiangTips1 comment – viewed 45,541 times – ( +28 / -1 ) – version 1.1
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

Filter / Search with CListView

Created 6 years ago by JohnPollardHow-tos9 comments – viewed 44,441 times – ( +30 / -1 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 3 years ago by tophHow-tos2 comments – viewed 38,208 times – ( +1 / -2 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

How to display Dependent drop-down value using ajax call with dynamically

Created 3 years ago by Ankit ModiTutorials4 comments – viewed 33,373 times – ( +3 / -3 ) – version all
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.