Wiki

Sorted by commentsX
Displaying 41-50 of 601 result(s).

Real-time display of server push data using Server-Sent Events (SSE)

Created about a year ago by bennounaHow-tos15 comments – viewed 25,537 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

Created 11 months ago by drumaddictHow-tos15 comments – viewed 30,173 times – ( +19 )
AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

How to use ldap in UserIdentity for authentication

Created 4 years ago by BeerSercTutorials14 comments – viewed 31,997 times – ( +11 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Multiple-database support in Yii

Created 3 years ago by Steve FriedlHow-tos14 comments – viewed 58,389 times – ( +27 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

How to use a Widget as an Action Provider

Created 3 years ago by Antonio RamirezHow-tos14 comments – viewed 27,570 times – ( +27 ) – 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

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 3 years ago by xrxHow-tos14 comments – viewed 29,759 times – ( +22 ) – 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.

Url: hide index.php

Created 2 years ago by HermansHow-tos14 comments – viewed 82,677 times – ( +25 / -1 ) – version 1.1
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 100,014 times – ( +69 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

By Example: CHtml

Created 4 years ago by jonahTutorials13 comments – viewed 437,467 times – ( +98 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 26,308 times – ( +28 ) – version 1.1
Let's say we have two models and relation between them: