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