Wiki articles in category FAQs

Showing 1-7 of 7 items.

When to use Active Record

Created 6 years ago by samdark, updated 4 years ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

13 0
4 followers
Viewed: 53 178 times
Version: all
Category: FAQs

Common Yii questions

Created 13 years ago by dckurushin, updated 13 years ago by migajek.

Put attention of the question answer form

14 0
23 followers
Viewed: 59 519 times
Version: 1.1
Category: FAQs

Understanding the view rendering flow

Created 13 years ago by dckurushin, updated 11 years ago by Jorgee.

If we take a look at the blog demo we have 3 major parts of our view rendering. They are:

56 1
55 followers
Viewed: 241 913 times
Version: 1.1
Category: FAQs

Creating a parameterized LIKE query

Created 13 years ago by Steve Friedl, updated 12 years ago by Asgaroth.

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

13 0
21 followers
Viewed: 144 584 times
Version: 1.1
Category: FAQs

Relations: BELONGS_TO versus HAS_ONE

Created 13 years ago by Steve Friedl, updated 11 years ago by Jorgee.

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.

56 0
35 followers
Viewed: 164 618 times
Version: 1.1
Category: FAQs

Understanding "Safe" Validation Rules

Created 13 years ago by Steve Friedl, updated 11 years ago by Gismo.

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.

75 0
46 followers
Viewed: 185 956 times
Version: 1.1
Category: FAQs

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

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

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: ~~~ Error 403 You are not allowed to access this page. ~~~ This is almost certainly caused by the IP filtering mechanism that Gii uses to protect your system from outsiders - by default it allows localhost only (both IPv4 and IPv6), and r...

6 0
5 followers
Viewed: 87 253 times
Version: 1.1
Category: FAQs
Tags: config, Gii