Wiki

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

Using CButtonColumn to customize buttons in CGridView

Created 6 years ago by TrejderHow-tos19 comments – viewed 274,742 times – ( +101 ) – 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.

Working with CGridView in Admin Panel

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

Multiple-database support in Yii

Created 5 years ago by Steve FriedlHow-tos18 comments – viewed 101,643 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 5 years ago by Da:SourcererHow-tos18 comments – viewed 27,242 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.

Update content in AJAX with renderPartial

Created 7 years ago by BurzumTutorials17 comments – viewed 252,170 times – ( +60 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

How to setup RBAC with a php file

Created 6 years ago by bettorHow-tos17 comments – viewed 63,231 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 87,799 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 39,768 times – ( +25 ) – 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 5 years ago by DragaTutorials17 comments – viewed 61,996 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 26,093 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.