Re: 'Form Builder'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In order to build forms automatically, we developed a library that can
build HTML forms automatically from the schema and can handle the
logics/validations.

https://github.com/c9s/ActionKit

The schema is something look like this:

class YourAction extends \ActionKit\Action{    function schema() {
   $this->param('id')            ->renderAs('HiddenInput');
$this->param('password')            ->renderAs('PasswordInput');
 $this->filterOut('hack','hack2','role');    }
}


Once you defined the schema, the server side can handle the input
validation and data processing.

The underlaying part is FormKit, which provides fluent API to build
widgets, and you can choose different layout class to layout your widgets:

https://github.com/c9s/FormKit



-- 
Best Regards,

Yo-An Lin

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux