SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Porto,Portugal
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Class for generate html CRUD forms from db?

    Hi.
    Does anybody know any class that can generate html forms for CRUD operations directly from database tables?

    The class should be easy to use,flexible and database engime independent.
    And because itīs a form class it should be possible to set things like action,method,callback on submit etc. Also field validation would be interesting.

    In a very simple way I was thinking in something like this:

    $form=new Form('form_name','form_actiion,'form_method');
    $form->getFromDBTable('dbtable');
    $form->setOnSubmitCallback('validate_data');
    ...
    $form->render();

  2. #2
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Austin
    Posts
    401
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Will an ORM like Propel not work - http://propel.phpdb.org/.

    It's fairly extendable, so i would assume that you could use it for this.
    Merchant Equipment Store - Merchant Services, POS, Equipment, and supplies.
    Merchant Account Blog | Ecommerce Blog


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •