Wiki articles in category How-tos

Showing 121-140 of 292 items.

multiple CActiveDataProviders in one CGridView

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Nashi.

There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

4 1
9 followers
Viewed: 27 505 times
Version: 1.1
Category: How-tos

get summary of related model via STAT relation

Created 6 years ago by rootbear, updated 5 years ago by YiiJeka.

typical scenario: invoice, invoice items.

4 1
8 followers
Viewed: 22 904 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii: yet another approach

Created 8 years ago by goncin, updated 8 years ago by goncin.
6 2
11 followers
Viewed: 30 684 times
Version: 1.1
Category: How-tos

Popup AJAX DialogBox without any extension

Created 6 years ago by Kostas Apazidis (KonApaz), updated 3 years ago by Maurizio Domba Cerin.

In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

5 1
6 followers
Viewed: 24 884 times
Version: 1.1
Category: How-tos

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 7 years ago by Boaz, updated 2 years ago by mrun.

Consider the following use case:

5 1
6 followers
Viewed: 19 896 times
Version: 1.1
Category: How-tos

Yet another implementation of CPhpAuthManager.

Created 6 years ago by seenivasan, updated 6 years ago by seenivasan.

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7 followers
Viewed: 15 225 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by VINAY Kr. SHARMA, updated 3 years ago by VINAY Kr. SHARMA.

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...

3 0
12 followers
Viewed: 28 421 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 6 years ago by Maciej Liżewski, updated 5 years ago by Maciej Liżewski.

I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

3 0
8 followers
Viewed: 17 763 times
Version: 1.1
Category: How-tos

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 6 years ago by Gerhard Liebenberg, updated 5 years ago by Gerhard Liebenberg.

If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

3 0
2 followers
Viewed: 20 258 times
Version: 1.1
Category: How-tos

how to make a dynamic progress bar to show the percentage or status

Created 6 years ago by hehbhehb, updated 5 years ago by Boaz.

Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

3 0
7 followers
Viewed: 38 941 times
Version: 1.1
Category: How-tos

CGridView Date Range Without Cookies or Session (External Filtering)

Created 6 years ago by ezekielnoob, updated 4 years ago by ezekielnoob.

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: grid

3 0
8 followers
Viewed: 17 972 times
Version: 1.1
Category: How-tos

History Autocomplete

Created 7 years ago by zaccaria, updated 7 years ago by Maurizio Domba Cerin.

In application development we often have to choose how to mange recurrent values.

3 0
9 followers
Viewed: 11 017 times
Version: 1.1
Category: How-tos

custom sql query results to CDetailView

Created 6 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Rohit Suthar.

This is a bried guide about displaying of custom sql query results.

3 0
4 followers
Viewed: 39 117 times
Version: 1.1
Category: How-tos

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Created 6 years ago by Interboy, updated 5 years ago by xJose.

Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.

3 0
7 followers
Viewed: 28 982 times
Version: 1.1
Category: How-tos

Adding Bash Command Completion for Yii Commands

Created 7 years ago by Dustin Oprea, updated 7 years ago by Dustin Oprea.

This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

3 0
5 followers
Viewed: 11 655 times
Version: 1.1
Category: How-tos

Yii CGridView add custom button

Created 6 years ago by Arockia Johnson SR, updated 5 years ago by CeBe.

Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

3 0
7 followers
Viewed: 41 235 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 7 years ago by pheadeaux, updated 7 years ago by pheadeaux.

There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...

3 0
9 followers
Viewed: 18 043 times
Version: 1.1
Category: How-tos

How to customize error handling in console-mode applications

Created 8 years ago by Steve Friedl, updated 8 years ago by Steve Friedl.

One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor th...

3 0
4 followers
Viewed: 16 463 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 5 years ago by IsraelAma, updated 5 years ago by CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 15 233 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 15 325 times
Version: 1.1
Category: How-tos