UCP Development

Developing modules, widgets and other things for the FreePBX User Control Panel

 

User control panel modules are part of FreePBX modules. You can create UCP only modules with no admin interface but you will still need at least a skeleton FreePBX module in place. 

In your FreePBX Module you will create a "ucp" folder (all lower case) which should have a class that that is representative of the parent module. So parentmodule would have a ucp class of Parentmodule.class.php. This will be the same as the BMO class but it is namespaced to avoid conflicts. 

The ucp module structure follows the FreePBX module structure and MVC model.  

  • rawname (dir)

    • assets(dir)

      • js(dir)

      • css(dir)

      • less(dir)

    • views(dir)

    • ucp(dir)

      • assets(dir)

        • js(dir)

          • global.js

        • css

        • less

      • views(dir)

      • Rawname.class.php

    • Rawname.class.php

    • functions.inc.php

    • ....

 

Return to Documentation Home I Return to Sangoma Support