* @version 0.3 * @since 0.1 * @copyright GNU Lesser General Public License (LGPL) version 3 */ /** * HtmlFormHelper * * HTML form fields helper */ class HtmlFormHelper extends Helper { // protected $fc; public function __construct($obj=null) { parent::__construct($obj); // $this->fc = FrontController::getInstance(); } /** * generates a complete form for model object given to constructor */ public function iAutoForm($name, $method='post', $action='', $class='') { if (!isset($this->obj)) { throw AppException('Can not generate form : no object given in Helper'); } $str = self::iForm($name, $method, $action); $str .= $this->obj->iFields($class); $str .= ''; return $str; } /** * returns a