Skip to content
Snippets Groups Projects
Commit d4e57f1c authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

Ajout de la classe field

parent dd7e022a
No related branches found
No related tags found
No related merge requests found
<?php
class Field {
protected $name = $name;
protected $value;
public function __construct($name, &$value) {
$this->name = $name;
$this->value =& $value;
}
public function html() {
return '<div class="form-group">
<label for="form'.$name.'">'.ucfirst($name).'</label>
<input type="text" class="form-control" name="'.$name.'" >
</div>';
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment