1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved How to make simpleForm List?

Discussion in 'Plugin Help' started by Nuth, Jun 24, 2021.

  1. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
    How can i make simple Form with button list get from config?
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Use foreach function!

    example:
    PHP:
    foreach(configgetcontents() as $data) {
        
    $form->addButton($data->getName());
    }
    This is just like a pseudocode so it will not work of course
     
    Agent likes this.
  3. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
    And how know data it ex:
    case 0:
    break;
    How to get this?
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    $data?
     
    Agent likes this.
  5. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
    Yes
     
  6. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
  7. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
  8. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    minijaham#3259

    I don't take any more friend requests though
     
    Agent likes this.
  9. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
    Ok
     
  10. Nuth

    Nuth Spider

    Messages:
    6
    GitHub:
    nuthcm
    Full friend?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.