Topic: One question

In that failure so you save $background data ?

public static function nkfBackground() {
            $background = '';
            if(Request::post('nkf_Change_background')){
                Option::add('nkfbackground',$background);
                Notification::set('success', __('Success'));         
            }else{
                Option::update('nkfbackground',$background);
                Notification::set('success', __('Success'));
            }
            echo (
                Form::open(null, array('class' => 'form-search')).
                Form::input('background',$background,array('name' => 'background','placeholder' => '#000','type'=>'text','class' => 'input-large')).                
                Form::submit('nkf_Change_background',__('Save','nkftheme'),array('type'=>'submit','class'=>'btn')).
                Form::close()
            );
        }

nakome's Website

Re: One question

I can't clearly understand your question... But why you on form submit add new option instead of update it ?
Options must be installed while plugin installation. See sandbox plugin for example: sandbox.install.php

Re: One question

I was going to put an example and this it worked smile

nakome's Website

Re: One question

and already fix the Option:add

nakome's Website