I'm creating a generic controller to be used in a model, this controller will work with any modules, but in some actions I'll need to pass a model instance, like this:
public actionCreate()
{
$model = new MYACTUALMODEL;
//do some thing ...
}
Some controllers on my app will extend this controller.
A inportant note:
Normally the controller name and de model name will be the same, so:
//if the controller name is: PersonController //the model name will be: Person
So I need know:
How can I get a model instance dinamicaly to use in place of MYACTUALMODEL ?
Thanks.

Help















