protected function getFormElements($type = 'list', $element)
    {
        $form = array();
        $template = $this->getTemplate("{$type}-block");
        $attributes = $this->getModelAttributes($this->tableInfo);

        foreach($attributes as $name)
        {
            $form[] = $this->renderElement($template, $element, $name);
        }

        return implode(PHP_EOL . PHP_EOL, $form);
    }
protected function getFormElements($type = 'list', $element)
    {
        $form = array();
        $template = $this->getTemplate("{$type}-block");
        $attributes = $this->getModelAttributes($this->tableInfo);

        foreach($attributes as $name)
        {
            $form[] = $this->renderElement($template, $element, $name);
        }

        return implode(PHP_EOL . PHP_EOL, $form);
    }
protected function getFormElements ( $ type = 'list' , $ element ) { $ form = array ( ) ; $ template = $ this -> getTemplate ( "{$type}-block" ) ; $ attributes = $ this -> getModelAttributes ( $ this -> tableInfo ) ; foreach ( $ attributes as $ name ) { $ form [ ] = $ this -> renderElement ( $ template , $ element , $ name ) ; } return implode ( PHP_EOL . PHP_EOL , $ form ) ; }
Dynamically create form elements

@param  string $type
@param  string $element
@return string
Dynamically create form elements