/** * 单例模式 * @return App_Model */ public static function &instance() { if (!isset(self::$instance)) { // Create a new instance self::$instance = new App_Model(); } return self::$instance; }