Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 141-150 of 322 result(s).

jQuery UI Datepicker

Updated about a year ago by ShahcheragheanHow-tos11 comments – viewed 52,328 times – ( +12 ) – 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 about a year ago by bennounaHow-tos16 comments – viewed 32,879 times – ( +12 ) – 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 about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 12,897 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().

Reference: Model rules validation

Updated about a year ago by RodrigoHow-tos7 comments – viewed 534,305 times – ( +122 ) – 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 about a year ago by Fran├žois GannazHow-tos19 comments – viewed 163,881 times – ( +101 ) – 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 about a year ago by KonApazHow-tos0 comments – viewed 3,016 times – ( +2 )
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 about a year ago by yugeneHow-tos30 comments – viewed 49,765 times – ( +21 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Date Picker by examples

Updated about a year ago by InterboyHow-tos6 comments – viewed 48,919 times – ( +9 / -2 )
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

Javascript and AJAX with Yii

Updated about a year ago by Fran├žois GannazHow-tos2 comments – viewed 99,858 times – ( +40 ) – 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

Create a custom menu using CMenu data-items (flat or tree structure)

Updated about a year ago by KonApazHow-tos0 comments – viewed 11,633 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.