TRUE, ); /** * View/Update the site configuration */ public function action_edit() { $o = Config::instance()->so; $output = ''; if ($_POST) { // Entry updated if ($o->values($_POST)->check() AND $o->save()) SystemMessage::add(array( 'title'=>'Site Configuration Recorded', 'type'=>'info', 'body'=>'Site Config successfully recorded.', )); } $output .= Form::open(); $output .= View::factory($this->viewpath()) ->set('o',$o);; $output .= Form::submit('submit','submit',array('class'=>'form_button')); $output .= Form::close(); Block::add(array( 'title'=>_('Update Site Configuration'), 'body'=>$output, )); } } ?>