/** * * @param string $entity * @return Ajde_Model */ protected function _getEntityModel($entityName) { Model::registerAll(); $entityModelName = ucfirst((string) $entityName) . 'Model'; return new $entityModelName(); }
protected function __construct() { Model::registerAll(); // Load applications bootstrap file require_once APP_DIR . 'Bootstrap.php'; }