Showing 321-340 of 826 items.

How to preload dropdowns in CForm

Created 13 years ago by transistor transistor, updated 13 years ago by transistor transistor. 0 comments

So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

1 0
2
Viewed: 14 990 times
Version: Unknown (update)
Category: Tips

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 572 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 308 times
Version: 1.1
Category: Tutorials