Wiki

Sorted by date (updated)X
Displaying 431-440 of 599 result(s).

How to add a named scope to ActiveRecords with a behavior

Updated 2 years ago by yiqing95Tutorials2 comments – viewed 13,828 times – ( +4 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

Searching and sorting by related model in CGridView

Updated 2 years ago by redguyTutorials72 comments – viewed 107,204 times – ( +102 ) – version 1.1
Lets say we have two models and relation between them:

How to use Flash, Zend AMF and Yii Framework

Updated 2 years ago by janistoTutorials0 comments – viewed 7,843 times – ( +3 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF

CPhpAuthManager - how it works, and when to use it

Updated 2 years ago by François GannazHow-tos5 comments – viewed 17,529 times – ( +1 / -4 ) – version 1.1
Before reading this article, you should first learn this How to setup RBAC with a php file

Using events with CAction classes

Updated 2 years ago by 张 迪Tips0 comments – viewed 10,007 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Yii Security-extended guide

Updated 2 years ago by bingjie2680Tips11 comments – viewed 13,405 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Manage application configuration in different modes

Updated 2 years ago by 张 迪Tutorials5 comments – viewed 27,397 times – ( +15 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

How to validate CSRF token with session

Updated 2 years ago by yangmlsHow-tos1 comment – viewed 28,331 times – ( +19 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Increasing AR performance in connections with Oracle

Updated 2 years ago by Igoru-sanHow-tos9 comments – viewed 14,923 times – ( +1 ) – version 1.1
Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

Creating a parameterized LIKE query

Updated 2 years ago by AsgarothFAQs6 comments – viewed 41,984 times – ( +21 ) – version 1.1
It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column