コード例 #1
0
ファイル: Form.php プロジェクト: kalkin/solarphp
 /**
  * 
  * Sets the default success and failure messages.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     $this->_Solar_Form['success'] = $this->locale('SUCCESS_FORM');
     $this->_Solar_Form['failure'] = $this->locale('FAILURE_FORM');
 }
コード例 #2
0
ファイル: Var.php プロジェクト: kalkin/solarphp
 /**
  * 
  * Modifies the default config.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     $output = PHP_SAPI == 'cli' ? 'text' : 'html';
     $this->_Solar_Debug_Var['output'] = $output;
 }