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

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

Updated 2 years ago by bennounaHow-tos16 comments – viewed 44,012 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).


Updated 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 20,522 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 2 years ago by RodrigoHow-tos7 comments – viewed 694,480 times – ( +126 ) – 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 2 years ago by Fran̤ois GannazHow-tos20 comments Рviewed 223,967 times Р( +107 ) Р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 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,516 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 3 years ago by yugeneHow-tos33 comments – viewed 68,490 times – ( +22 ) – 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 131,621 times Р( +42 ) Р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 92,603 times – ( +30 / -1 ) – 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?

Make theme and layout option in your site

Updated 3 years ago by trondHow-tos0 comments – viewed 8,954 times – ( +1 )
Here i am writing code how to add option of theme change and layout change in your website.
tags: theme, layouts

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Updated 3 years ago by acorncomHow-tos23 comments – viewed 54,237 times – ( +22 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.