I'm trying to edit values in a database, and I'm getting the following error:
Call to a member function values() on a non-object
Controller
public function action_options() {
    $this->template->styles = array(
        'style' => 'style',
        'acp' => 'acp'
    );
    $options = ORM::factory('option')->find_all()->as_array('option_name','option_value');
    $this->template->content = View::factory('default/admin/options')
        ->bind('options', $options);
}
    public function action_savesettings() {
    $options = ORM::factory('option')->find_all()->as_array('option_name','option_name');
    $options->values($this->request->post());
    $errors = array();
    try {
        $options->save();
        $this->request->redirect('acp/options');
   } catch (ORM_Validation_Exception $ex) {
       $errors = $ex->errors('validation');
   }
    $this->template->content = View::factory('default/admin/options')
        ->bind('options', $options)
        ->bind('errors', $errors);
}
View
<?php $errors = isset($errors) ? $errors : array(); ?>
<?php echo Form::open('acp/savesettings'); ?>
Site Name: <?php echo Form::input('site_name', $options['site_name'], array('id' => 'acp-sitename')); ?><br />
<?php echo Form::submit('submit', 'Submit', array('id' => 'acp-submit')); ?>
<?php echo Form::close(); ?>
My table is like:
option_id   option_name     option_value
I'm not sure how to approach this, since I'm accessing and editing the values with $options[''].
 
     
     
    