Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Generates a form dynamically based on passed in configuration instead of using a view for the form. More of a proof of concept than a fully completed work.

ariven/form-generator-for-codeigniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

form-generator-for-codeigniter

Generates a form dynamically based on passed in configuration instead of using a view for the form. More of a proof of concept than a fully completed work.

after adding the library to your function, you can pass the following configuration file options to the init() function: $config = array( 'form_title' => 'Title text used in form', 'form_id' => 'form', // id tag for form 'form_action' => '/form', // URL for form to submit to 'form_class' => 'form_class', // class(es) to include on form 'hidden' => array('name' => 'value'), // array of field names and values for hidden fields 'multipart' => FALSE, // is this a multipart form 'submit_button' => 'Submit', // name to use on submit button 'after_button' => ' or Cancel', // text to place after submit button (if any) 'fields' => array('name' => 'field_name', 'type' => 'text', 'id' => 'field_id', // array of name/type/id info where 'type' can be any input type. Alternately, can be just an array of single strings that are field names ); this is used: $this->form->init($config); See the documentation of each function in the library file for more details.

About

Generates a form dynamically based on passed in configuration instead of using a view for the form. More of a proof of concept than a fully completed work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages