Wiki

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

Understanding the view rendering flow

Updated about a month ago by JorgeeFAQs10 comments – viewed 67,727 times – ( +65 / -1 )
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Understanding "Safe" Validation Rules

Updated 5 months ago by GismoFAQs7 comments – viewed 39,469 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.

Links to Yii FAQs on the web

Updated about a year ago by marcanuyFAQs1 comment – viewed 4,718 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

Creating a parameterized LIKE query

Updated about a year ago by AsgarothFAQs3 comments – viewed 23,375 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

Common Yii questions

Updated about a year ago by migajekFAQs2 comments – viewed 23,467 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

Relations: BELONGS_TO versus HAS_ONE

Updated 2 years ago by Maurizio DombaFAQs6 comments – viewed 38,209 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.

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

Updated 2 years ago by Steve FriedlFAQs2 comments – viewed 23,218 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