I'd like to instantiate a model (in Zend Framework) using a generic way. I have $type
variable which contains the name of the model. I'd like to write something like this
$db = new Admin_Model_{$type}();
But it doesn't work, Is there any way to accomplish this?