Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

Yii2 - Get Current Action ID in main.php


In a layout you can access the current controller via $this->context, and so the current action id by $this->context->action->id

For reference

Tags : PHP, Yii2,

Views : 2252

Recent Posts


Popular Tags


Subscribe Us

Follow Us