Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 351-355 of 355 result(s).

Enhance security of cookie-based login

Created 3 years ago by darkheirHow-tos0 comments – viewed 9,194 times – ( +2 / -1 ) – version 1.1
Enhance security of cookie-based login

Role Management

Created 3 years ago by Dency G BHow-tos0 comments – viewed 11,907 times – ( +3 / -1 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Logging to Heroku's logs from Yii

Created 4 years ago by aarondfrancisHow-tos0 comments – viewed 6,024 times – ( +2 / -1 ) – version 1.1
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines:
tags: heroku, Logging

Yii configuration: Dynamic & User dependent

Created 3 years ago by le_topHow-tos0 comments – viewed 6,325 times – ( +1 / -1 ) – version 1.1
It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched from the database when actually used for the first time, which is after Yii is loaded. Actually, you can use pretty much any method that relies on Yii with this method.

Checking for "expired" sessions/logins on the client side

Created 4 years ago by le_topHow-tos0 comments – viewed 24,528 times – ( +6 / -1 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.