Wiki

Sorted by date (updated)X
Displaying 361-370 of 782 result(s).

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

Updated 3 years ago by bennounaHow-tos16 comments – viewed 44,688 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 3 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 20,970 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().

Set a menu - reusable code

Updated 3 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 5,914 times – ( +2 )
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

The MrFisk IRC Bot

Updated 3 years ago by rAWTAZOthers0 comments – viewed 23,460 times – ( +6 ) – version 1.1
MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.
tags: MrFisk, YiiBot, IRC, bot

Rendering Views and Updating them with Ajax

Updated 3 years ago by Manish GuptaTips4 comments – viewed 19,662 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Reference: Model rules validation

Updated 3 years ago by RodrigoHow-tos7 comments – viewed 701,971 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 upload image(photo), and path entry in database with update functionality

Updated 3 years ago by ShahcheragheanTips22 comments – viewed 160,167 times – ( +37 / -3 ) – version 1.1
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

How to write secure Yii applications

Updated 3 years ago by Fran├žois GannazHow-tos20 comments – viewed 226,310 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 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,650 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 69,351 times – ( +22 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.