FOFModel::getAnInstance
Returns a new model object. Unless overriden by the $config array, it will try to automatically populate its state from the request variables.
Signature
public function getAnInstance(string
$type,
[string
$prefix = '',
array
$config] )
Parameters
-
$type
- Model type, e.g. 'Items'
-
$prefix
- Model prefix, e.g. 'FoobarModel'
-
$config
- Model configuration variables
Returns
- FOFModel