The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

questions about cPanel PHP & cPanel Template Toolkit

Discussion in 'cPanel Developers' started by carbonturtle, Sep 19, 2010.

  1. carbonturtle

    carbonturtle Member

    Joined:
    Nov 26, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I wish to create a cPanel Plugin (not sure I'm using the term correctly-- I'm not 100% clear on the difference between Modules, Plugins, Add-Ons, etc.) that will query a mySQL database table for records pertaining to the currently logged-in user, and display them.

    Of the options available, the cPanel PHP option seems the best match for my current skills. I want to use the cPanel Template Toolkit to handle at least the iteration over the dataset, and possibly other things. Does this sound feasible so far?

    The problem I've encountered is that I can't find any good documentation of CPTT, particularly the available modules and their parameters & functions. When I look on the Template Toolkit website, the modules I see there don't match the modules I see in the (few!) cPanel examples I've been able to find. Are the available modules documented anywhere?

    Also, is it necessary (or just a matter of convention) that the template file have the same name as the file that calls it? The example I've tried fails with the error "file error - cphello/listpopswithdisk.tmpl : not found". The file is definitely there.

    Any help with the above would be greatly appreciated.

    Thanks,
    Michael
     
  2. carbonturtle

    carbonturtle Member

    Joined:
    Nov 26, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Ok, I figured out that the modules in question are in fact the API2 modules. :rolleyes:
     
Loading...

Share This Page