Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 191-200 of 354 result(s).

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Updated 3 years ago by nsandenHow-tos4 comments – viewed 35,919 times – ( +14 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

jQuery UI Datepicker

Updated 3 years ago by ShahcheragheanHow-tos11 comments – viewed 76,313 times – ( +13 / -1 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Real-time display of server push data using Server-Sent Events (SSE)

Updated 3 years ago by bennounaHow-tos16 comments – viewed 46,589 times – ( +12 / -1 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

defaultScope

Updated 3 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 22,256 times – ( +5 / -2 ) – 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().

Reference: Model rules validation

Updated 3 years ago by RodrigoHow-tos7 comments – viewed 726,915 times – ( +127 / -1 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

How to write secure Yii applications

Updated 3 years ago by Fran├žois GannazHow-tos20 comments – viewed 234,468 times – ( +108 / -1 ) – version 1.1
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

thumbsgen and Kohana Image Library together (extends an extension)

Updated 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,995 times – ( +2 / -1 )
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

Using filters with CGridView and CArrayDataProvider

Updated 3 years ago by yugeneHow-tos33 comments – viewed 71,844 times – ( +22 / -1 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Javascript and AJAX with Yii

Updated 3 years ago by Fran├žois GannazHow-tos3 comments – viewed 137,671 times – ( +42 / -1 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

How to use PHPExcel external library with Yii

Updated 3 years ago by cgsmithHow-tos14 comments – viewed 98,492 times – ( +30 / -2 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?