Category "yii2"

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

In this section of the yii2 installation guide there's the following instructions: With Composer installed, you can install Yii by running the following c

Session timeout in Yii2

I have used built in yii2 function to set session. I am not able to use built in yii2 login because of some requirement. So I have set session using below:

Yii2: How do I debug console commands?

The Yii2 debugger seems to only work for web requests. How can I debug console commands (CLI)? Eg. I need to see the SQL statements that were executed during a

yii2 register js code in a view

What is the best way to register js code in yii2 view? 1 <?php $this->registerJs( '$("document").ready(function(){ alert("hi"); });' ); ?&