Instead of having a model for each of my tables I would like to have one model for all tables and to be able to switch between tableName according to a GET parameter. What would be the best way to do that and how to do it in a way that Yii first validates the GET parameter.
Example:
A request with ?id=someparam => logic should load table Param.
?id=someparam2 => logic should load table Param2
I guess I can try doing it with if...else... but if someone knows a better way please share
Best,
b

Help















