Webinterface w/o database

Discussion in 'Developers' Forum' started by ColdDoT, May 29, 2012.

  1. ColdDoT

    ColdDoT Member

    Hello All,

    I'm working on a addon that will give a GUI for the remote API of my colocation hoster. (TransIP)
    They made a sweet API with which you can do as good as everything.

    Now my question is how could you make your own list views with edit and view forms for data that is not fetched from tables? (as i get the data in raw arrays from there api)

    Thanks in advance,
    Regards,
    ColdDoT
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Tke a look at the base classes for the lists and forms, listform_actions.inc.php and tform_actions.inc.php.

    For the lists, create your own list like:

    mylist extends listform_sctions {
    ....
    }

    and override the whole onLoad function with your own code.

    For the forms, override the functions to show and save data from the tform_actions class with your own code.
     
  3. ColdDoT

    ColdDoT Member

    Thanks for the fast response as always!
     

Share This Page