Wiki

Articles in category "faqs", sorted by ratingX
Displaying 1-7 of 7 result(s).

Understanding "Safe" Validation Rules

Created 2 years ago by Steve FriedlFAQs7 comments – viewed 39,620 times – ( +72 )
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

Relations: BELONGS_TO versus HAS_ONE

Created 2 years ago by Steve FriedlFAQs6 comments – viewed 38,336 times – ( +58 )
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

Understanding the view rendering flow

Created about a year ago by dckurushinFAQs10 comments – viewed 68,001 times – ( +65 / -1 )
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Common Yii questions

Created about a year ago by dckurushinFAQs2 comments – viewed 23,506 times – ( +20 )
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

Creating a parameterized LIKE query

Created about a year ago by Steve FriedlFAQs3 comments – viewed 23,476 times – ( +14 )
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

"Why do I get a 403 error when trying to use Gii?"

Created 2 years ago by Steve FriedlFAQs2 comments – viewed 23,286 times – ( +7 )
After enabling the Gii module in your protected/config/main.php file and then try to use it with http://example.com/index.php?r=gii, you get an error:
tags: Gii, config

Links to Yii FAQs on the web

Created about a year ago by schmunkFAQs1 comment – viewed 4,723 times – ( +2 )
While this is not a wiki article about a specific Yii topic, here is the list with more Yii FAQs:
tags: faq, yii, questions