예제 #1
0
 function _save($id = null)
 {
     if ($_POST) {
         $_POST['next_time'] = $this->_model()->get_next_time($_POST);
     }
     parent::_save($id);
 }
예제 #2
0
 function _save($id = null)
 {
     parent::_save($id);
     $countrys = $this->_model()->query('SELECT * FROM country')->result_array();
     $this->_data['country_options'] = array('' => l('(Please select)'));
     foreach ($countrys as $co) {
         $this->_data['country_options'][$co['id']] = $co['name'];
     }
 }