Top "Yii2" questions

Yii 2 is the latest version of the Yii framework - a high-performance, component-based PHP framework

How to use not equal to inside a Yii2 query

I want to use a yii2 query in which I want to check a not equal to condition. I tried …

yii2
Yii2 Session, Flash messages

I have a problem with setting flash messages. So, i have an action which in some cases should redirect with …

session yii2
Create button with link in Yii2

I am trying to setup a button with a link to a view. However yii\bootstrap\Button does not have …

php yii yii2 yii-widgets
yii2 registering JS files to a View

I have A.php view file in /views/A/ folder. And I have A.js js file in /views/A/ …

javascript class path yii2
Performing raw SQL queries in Yii2?

I have written the below queries as I migrate my PHP website to the Yii2 framework. I want to add …

php mysql yii2 yii2-advanced-app
how to use not null condition in YII2

Hi i want to use not null condition in my yii2 query how should i use that. i don't want …

php yii2
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated

when i got upgraded my ubuntu from 15.10 to 16.04 i have this erro in my yii2 project SQLSTATE[42000]: Syntax error or …

mysql ubuntu yii2
Log the actual SQL query using ActiveRecord with Yii2?

I'm doing this: $students = Student::find()->all(); return $this->render('process', array('students' => $students)); and then …

php sql activerecord logging yii2
How to use the swiftMailer in Yii2

I can't finally understand how to use the swiftMailer extension in Yii2. Judging by that on this subject I didn't …

php yii swiftmailer yii2
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 …

activerecord yii yii2