Wiki

Sorted by commentsX
Displaying 31-40 of 770 result(s).

Working with CGridView in Admin Panel

Created 3 years ago by vibhaJadwaniTutorials18 comments – viewed 74,481 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Using CButtonColumn to customize buttons in CGridView

Created 5 years ago by TrejderHow-tos18 comments – viewed 257,935 times – ( +99 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Multiple-database support in Yii

Created 5 years ago by Steve FriedlHow-tos18 comments – viewed 94,573 times – ( +29 ) – 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

Authenticating against phpass hashes with Yii

Created 4 years ago by Da:SourcererHow-tos18 comments – viewed 26,343 times – ( +26 ) – 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 setup RBAC with a php file

Created 6 years ago by bettorHow-tos17 comments – viewed 61,336 times – ( +26 / -5 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Simple RBAC

Created 4 years ago by hasanaviTutorials17 comments – viewed 83,921 times – ( +50 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 5 years ago by xrxHow-tos17 comments – viewed 37,991 times – ( +24 ) – 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.

CListView AJAX filtering

Created 4 years ago by DragaTutorials17 comments – viewed 59,151 times – ( +17 ) – version 1.1
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Handling Bootstrap active tabs in Yii via URL

Created 3 years ago by JamesBarnsleyHow-tos17 comments – viewed 23,904 times – ( +7 ) – version 1.1
I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

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

Created 3 years ago by bennounaHow-tos16 comments – viewed 41,568 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).