public function makeFormElements()
    {
        $formMethods = array();

        foreach($this->cache->getFields() as $name => $type)
        {
            $formalName = ucwords($name);

            // TODO: add remaining types
            switch($type)
            {
                case 'integer':
                   $element = "{{ Form::input('number', '$name') }}";
                    break;

                case 'text':
                    $element = "{{ Form::textarea('$name') }}";
                    break;

                case 'boolean':
                    $element = "{{ Form::checkbox('$name') }}";
                    break;

                default:
                    $element = "{{ Form::text('$name') }}";
                    break;
            }

            // Now that we have the correct $element,
            // We can build up the HTML fragment
            $frag = <<<EOT
        <li>
            {{ Form::label('$name', '$formalName:') }}
            $element
        </li>

EOT;

            $formMethods[] = $frag;
        }

        return implode(PHP_EOL, $formMethods);
    }
public function makeFormElements()
    {
        $formMethods = array();

        foreach($this->cache->getFields() as $name => $type)
        {
            $formalName = ucwords($name);

            // TODO: add remaining types
            switch($type)
            {
                case 'integer':
                   $element = "{{ Form::input('number', '$name') }}";
                    break;

                case 'text':
                    $element = "{{ Form::textarea('$name') }}";
                    break;

                case 'boolean':
                    $element = "{{ Form::checkbox('$name') }}";
                    break;

                default:
                    $element = "{{ Form::text('$name') }}";
                    break;
            }

            // Now that we have the correct $element,
            // We can build up the HTML fragment
            $frag = <<<EOT
        <li>
            {{ Form::label('$name', '$formalName:') }}
            $element
        </li>

EOT;

            $formMethods[] = $frag;
        }

        return implode(PHP_EOL, $formMethods);
    }
public function makeFormElements ( ) { $ formMethods = array ( ) ; foreach ( $ this -> cache -> getFields ( ) as $ name => $ type ) { $ formalName = ucwords ( $ name ) ; // TODO: add remaining types switch ( $ type ) { case 'integer' : $ element = "{{ Form::input('number', '$name') }}" ; break ; case 'text' : $ element = "{{ Form::textarea('$name') }}" ; break ; case 'boolean' : $ element = "{{ Form::checkbox('$name') }}" ; break ; default : $ element = "{{ Form::text('$name') }}" ; break ; } // Now that we have the correct $element, // We can build up the HTML fragment $ frag =  <<<EOT
        <li>
            {{ Form::label('$name', '$formalName:') }}
            $element
        </li>

EOT ; $ formMethods [ ] = $ frag ; } return implode ( PHP_EOL , $ formMethods ) ; }
Add FlyPHP methods, as string,
for the fields

@return string
Add FlyPHP methods as string for the fields