Articles tagged with "widget configuration"X
Displaying 1-1 of 1 result(s).

Yii configuration: Dynamic & User dependent

Created 3 years ago by le_topHow-tos0 comments – viewed 6,744 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.