Wiki

Sorted by date (updated)X
Displaying 441-450 of 600 result(s).

Creating a parameterized LIKE query

Updated 2 years ago by AsgarothFAQs6 comments – viewed 42,187 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

How to re enable logging during unit testing

Updated 2 years ago by AsgarothHow-tos3 comments – viewed 10,152 times – ( +10 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Application-driven database with CDbMigration and an extended CActiveRecord

Updated 2 years ago by Tudor IlisoiOthers0 comments – viewed 7,787 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model

How to insert a Simple Dialog Box

Updated 2 years ago by bluyellHow-tos4 comments – viewed 18,569 times – ( +5 / -2 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

How to work with flash messages

Updated 2 years ago by Fran├žois GannazTutorials9 comments – viewed 140,035 times – ( +57 ) – version 1.1
Set your messages in a controller:

Force a User to Change Their Password (ChangePasswordFilter)

Updated 2 years ago by waterloomattTutorials2 comments – viewed 12,970 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Common Yii questions

Updated 2 years ago by migajekFAQs2 comments – viewed 31,688 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

Understanding series articles

Updated 2 years ago by GOshaTips0 comments – viewed 7,511 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Understanding Virtual Attributes and get/set methods

Updated 2 years ago by GOshaTutorials19 comments – viewed 77,525 times – ( +75 ) – version 1.1
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Understanding Autoloading, Helper Classes and Helper Functions

Updated 2 years ago by GOshaTutorials4 comments – viewed 58,839 times – ( +27 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.