Top "Yii2-advanced-app" questions

Yii 2 Advanced Application Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.

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
Yii2: How to add textarea in yii2

What is the mapping of textarea in yii2 ? How to write this in yii2 format? <textarea name="downloadSourceCode" id="…

yii2 yii2-advanced-app yii2-basic-app
Yii2 dropdown selected value

I want to show selected value in Yii2 dropdown, $_GET Value: $id = $_GET["cid"]; Drop down code $form->field($…

yii2 yii2-advanced-app
Get response in JSON format in Yii2

I'm trying to convert and array of response into JSON format. I have tried all the answers that were posted …

php json yii2 yii2-advanced-app
Set global language value in Yii2 application

Where can I set language (based on user's cookie) globally? How to make it work in the whole application (controllers,…

php yii2 yii2-advanced-app
Exception 'could not find driver' while migration in yii2

This my stack trace: Exception 'yii\db\Exception' with message 'could not find driver' in /opt/lampp/htdocs/advanced/vendor/…

php mysql pdo yii2 yii2-advanced-app
yii2 ActiveForm numeric textfield

I've created an ActiveForm using yii2 like this: <?=$form->field($item, 'finalPrice', [ 'options' => [ 'tag' => 'div', 'class' =&…

yii2 yii2-advanced-app active-form
yii2 navbar with dropdown

After some simple edit on the default navbar, I got the code for the menu below... It would be very …

navbar yii2-advanced-app
Yii2 dropdownList select default option

I am returning cat_id value by GET in url to say that my dropdown list, which Item must be …

drop-down-menu yii2 yii2-advanced-app
ActiveForm without model yii2

I want to create ActiveForm without model for just in case something. I did try with dynamicModel but i got …

yii2 yii2-advanced-app yii2-basic-app