Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Forms [php]
- function show(){
- echo $this->render();
- }
- function field($field){
- if (is_array($field)) $field = new InputField($field);
- return $this->fields[] = $field;
- }
- function get_field($name){
- foreach ($this->fields as $field)
- if ($field->name == $name)
- return $field;
- return null;
- }
Add Comment
Please, Sign In to add comment