Top "Yii2" questions

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

Yii2 BootstrapAsset is not loading bootstrap.js

yii\bootstrap\BootstrapAsset is not loading bootstrap.js, and such elements as "modal" and others are not working. class AppAsset …

javascript twitter-bootstrap-3 yii2
Equivalent of "Yii::app()->runController('controller/action')" in Yii2?

What is the equivalent function of: Yii::app()->runController('controller/action') in Yii2? I would like to call …

yii2 yii2-advanced-app
Yii2 View DateTime Format (d-m-Y H:i:s) But When Save/update in DB Change format to Y-m-d H:i:s

I'm Using Kartik DateTimePicker Extension <?= $form->field($model, 'Created')->widget(DateTimePicker::classname(),[ 'model' => $model, 'attribute' =&…

yii2 yii2-advanced-app
yii2 how to run console controller function

I'm stuck. I'm trying to run some function from the command shell. I'm using the HelloController from the basic project. …

php yii2 yii2-basic-app
How to write global functions in Yii2 and access them in any view (not the custom way)

Yii1.1 had a CComponent class that had a CBaseController which was the base class for CController. There was a /protected/…

php yii2 yii-components
Yii2 - flash not visible after redirect

Flash messages seems to be broken in case of redirecting. I made simple test code: public function actionTest($test = 0) { if($…

php redirect yii2 flash-message
How to save user password in Hash format into DB in Yii2

I need to create new user. And I want to save password into hash format in DB. But I failed …

yii yii-components yii2
How to Create a REST API for Yii2-basic-template

I wanted to create a REST API for a yii2 basic template. I followed the following link. I created a …

rest yii2 yii2-basic-app
yii2: How to work with font awesome icons?

I have this HTML link tag that I need to generate using yii\helpers\Html <a href="register" class="…

php yii2 yii2-advanced-app
Yii2 - Getting unknown property: yii\console\Application::user

I am trying to run a console controller from the terminal, but i am getting this errors every time Error: …

php yii yii2 console-application yii2-advanced-app