Category: Yii
How to automatically prepend title in Yii2 application?
Click read more to check gist code.
How to add Bootstrap 4 to Yii2?
If you’ll ever tried to install Twitter Bootstrap 4 Extension for Yii 2 you know that this is pain in the ass because Bootstrap 3 dependency…
How to replace one GET var in Yii 1.1.* when using form?
I’ve needed URL with one variable replaced so it wouldn’t be duplicated every request. I’ve came up with this simple solution:
Force Yii to republish assets every page refresh
During webapp development you’ll need often assets republication. When you publish assets using directory path, framework won’t republish them automaticaly. So what can you do? It’s plain simple. Use YII_DEBUG constant as fourth argument in publish function. $assetPath = Yii::app()->assetManager->publish(Yii::getPathOfAlias(‘application.modules.components.assets’), false, 1, YII_DEBUG); From this moment Yii will republish assets on every page refresh only […]
Active directory support for Yii framework
2013-11-07: version 1.0 check documentation at: http://www.yiiframework.com/extension/yii-adldap/ Update: Check this tutorial to know how to map user roles using AD information. Download: