Showing 161-180 of 652 items.

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

Created 13 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 12 years ago by Gerhard Liebenberg Gerhard Liebenberg. 0 comments

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
Viewed: 25 669 times
Version: 1.1
Category: How-tos

Create Excel File with PHPExcel Plugin (Insert Image in Excel Sheet ,Use Template to Create Excel File, Create New Sheet)

Created 13 years ago by codesutra codesutra, updated 11 years ago by codesutra codesutra. 6 comments

This is an example for how to create Excel File with PHPExcel library.This article is inspired by Wikki Article return by Antonio Ramirez and extension created by marcovtwout for [PHPExcel library](https://github.co...

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 13 years ago by codesutra codesutra, updated 12 years ago by codesutra codesutra. 11 comments

Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

4 0
11
Viewed: 89 553 times
Version: 1.1
Category: Tutorials

Insert a multirow header in CGridView

Created 13 years ago by Peppe Peppe, updated 12 years ago by Peppe Peppe. 2 comments

The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...

4 0
5
Viewed: 31 336 times
Version: 1.1
Category: How-tos

Building Page Specific Menus using CMenu

Created 13 years ago by mistryb mistryb, updated 11 years ago by mistryb mistryb. 1 comment

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3
Viewed: 19 853 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 13 years ago by Maciej Liżewski Maciej Liżewski, updated 12 years ago by Maciej Liżewski Maciej Liżewski. 8 comments

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
Viewed: 23 951 times
Version: 1.1
Category: How-tos