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