classes/Fields/Image.php
protected function createHidden($name, $value = null)
    {
        $field = Former::hidden($this->inputName($name))->class('input-'.$name);
        if ($value) {
            if (!is_scalar($value)) {
                $value = json_encode($value);
            }
            $field->forceValue($value);
        }

        return $field->render();
    }
protected function createHidden($name, $value = null)
    {
        $field = Former::hidden($this->inputName($name))->class('input-'.$name);
        if ($value) {
            if (!is_scalar($value)) {
                $value = json_encode($value);
            }
            $field->forceValue($value);
        }

        return $field->render();
    }
protected function createHidden ( $ name , $ value = null ) { $ field = Former :: hidden ( $ this -> inputName ( $ name ) ) -> class ( 'input-' . $ name ) ; if ( $ value ) { if ( ! is_scalar ( $ value ) ) { $ value = json_encode ( $ value ) ; } $ field -> forceValue ( $ value ) ; } return $ field -> render ( ) ; }
Make a hidden field

@param  string $name
@param  string $value
@return string
Make a hidden field