コード例 #1
0
 public function __construct($options = null)
 {
     $this->_setupTranslation();
     $this->addPrefixPath('Revoleers_Form_Element', 'Revoleers/Form/Element', 'element');
     parent::__construct($options);
     // add a hash to this form unless a config setting says otherwise
     $this->_hashElement = Revoleers_Util_Hash::checkAddHashToForm($this);
     $this->addElementPrefixPath('Revoleers_Validate', 'Revoleers/Validate', 'validate');
     $this->addElementPrefixPath('Revoleers_Form_Decorator', 'Revoleers/Form/Decorator/', 'decorator');
 }
コード例 #2
0
 public static function getConfig()
 {
     if (self::$_config === null) {
         require_once 'Zend/Config/Ini.php';
         self::$_config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
     }
     return self::$_config;
 }