Wiki

Sorted by ratingX
Displaying 91-100 of 752 result(s).

Setting and maintaining the language in Application (i18n)

Created 6 years ago by olafureTutorials12 comments – viewed 89,093 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Creating a parameterized LIKE query

Created 4 years ago by Steve FriedlFAQs6 comments – viewed 66,208 times – ( +23 ) – 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

How to validate CSRF token with session

Created 3 years ago by yangmlsHow-tos1 comment – viewed 40,675 times – ( +22 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

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

Created 3 years ago by acorncomHow-tos23 comments – viewed 40,609 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.

Impersonate Users within Yii Framework

Created 4 years ago by WoilTutorials6 comments – viewed 14,216 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 4 years ago by RusAlexHow-tos9 comments – viewed 46,322 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Common Yii questions

Created 3 years ago by dckurushinFAQs2 comments – viewed 36,510 times – ( +21 ) – version 1.1
Here I suggest to list the most common questions you meet in the forum or freenode irc. Feel free to edit this wiki article, and add another question with answer

The Comedy of Errors

Created 3 years ago by fsbOthers3 comments – viewed 8,501 times – ( +21 ) – version 1.1
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 3 years ago by samdarkHow-tos1 comment – viewed 10,625 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Display an AJAX tree from your DB using CTreeView

Created 5 years ago by Fran├žois GannazTutorials10 comments – viewed 50,971 times – ( +21 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView