Yii

Use for questions about any version of Yii, an open-source MVC framework for writing web 2.0 applications in PHP5+

67 votes
3 answers
2.7K views
Yii2 subquery in Active Record

How can I convert this sql into active record query SELECT * FROM `base_twitter` WHERE id NOT IN (SELECT base

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
52 votes
1 answers
2.8K views
When to use components and when to use extensions in Yii?

I'm a little bit confused about the purpose of components and extensions folders in protected/ Please cl

avatar
Dwain
0 1 0 9
asked 07 September, 2021
51 votes
2 answers
750 views
render a view from another controller, yii

The controller: controllers |-FooController.php |-BarController.php The views: view |-foo| | |-index.ph

avatar
Don
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
2.4K views
Yii2 request parameter from url

In YII I could request a parameter from url and populate a form field called companyAdd_id with the following

avatar
Jeff
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1.1K views
Yii2: How to use orWhere in andWhere

I want create this query with yii2 search model select * from t1 where (title = 'keyword' or conte

avatar
Elicia
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
1.4K views
Cakephp and Yii: similarities/differences/speed?

I am a CakePhp programmer. I have decided to try out the Yii framework. I would like to find out in what ways

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
2.6K views
What is the difference between component, extension & module in Yii

I am new to Yii framework, and just came across module, extension & component inside protected folder. Ca

avatar
Emilia
0 1 0 9
asked 07 September, 2021
58 votes
14 answers
2.8K views
Yii model to array?

How can I convert the result of Trips::model()->findAll() to an array?

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
62 votes
8 answers
2.2K views
yii: how to make a unique rule for two attributes

I have a table like this: (id, name, version, text). (name, version) is unique key, how can i make a rule to v

avatar
Robyn
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
1.6K views
Hide label for input field

I am trying to hide the label for a specific field in _form.php without success. I have tried couple of varia

avatar
Royal
0 1 0 9
asked 07 September, 2021
54 votes
4 answers
1.2K views
Yii2 : Active Record add Not In condition

What is the active Record way of adding IN condition to an active Query in yii 1.x you could use CDbCriteria l

avatar
Sachiko
0 1 0 9
asked 07 September, 2021