Hi there,
I want to create model whose name is dependent on request params. So my model name is in var -
$modelName = $_REQUEST['modelName'];
This modelName var has valid model name and I want to use this var to create a model. I am creating model as -
$model = new $modelName;
But it is not working;
Plus I want to assign one model var whose name is also in the request param -
$varName = $_REQUEST['VarName'];
$model->{$varName} = "SomeValue";
Model is the object of model created dynamically. This is also not working..
Please help!
Thanks in adv!