/** * Singleton * * @return Zym_Loader_ModelLoader */ protected static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * Load the model */ public static function load($formName, $modelPrefix = null, $module = null) { $formLoader = Zym_Loader_FormLoader::getInstance(); $formLoader->loadModel($formName, $modelPrefix, $module); }