Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 221-230 of 341 result(s).

Twitter Bootstrap style Breadcrumbs

Created 2 years ago by junaidatariHow-tos0 comments – viewed 15,019 times – ( +5 / -1 ) – version 1.1
1: Create breadcrumb in your view file.

How to show a Captcha in CForm?

Created 10 months ago by Rohit SutharHow-tos0 comments – viewed 3,044 times – ( +5 / -1 ) – version 1.1
In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.
tags: captcha, CForm, widget

defaultScope

Created 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 15,191 times – ( +5 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

A simple go back button widget

Created 2 years ago by CTalaHow-tos7 comments – viewed 17,516 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Moving the vendor directory for multiple projects

Created 5 months ago by mariosimaremareHow-tos2 comments – viewed 4,396 times – ( +4 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

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

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 12,420 times – ( +4 / -1 ) – version 1.1
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.

simple CSV export

Created 2 years ago by bluyellHow-tos5 comments – viewed 18,132 times – ( +4 / -1 ) – version 1.1
tags: csv, excel, export

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 2 years ago by skwordenHow-tos4 comments – viewed 14,801 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

Open Dialog from ajax content

Created 2 years ago by TouzasHow-tos1 comment – viewed 13,130 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

Client-side form validation using Twitter Bootstrap's Popovers

Created 2 years ago by TrejderHow-tos4 comments – viewed 31,609 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.