OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of Erka »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - Erka

Pages: [1]
1
Development and Code Review / Re: HelloWorld module / application
« on: January 28, 2016, 07:05:07 am »
I was able to get it up and running by installing helloworld directly through pkg install. I've found that menu system part needs to be changed to the following in order to work on the latest version.

<menu>
    <!-- Plugin HelloWorld menu -->
    <Lobby order="999">
        <HelloWorld VisibleName="Hello World!" url="/ui/helloworld/"/>
    </Lobby>
</menu>

The following link seem to be already outdated too. https://wiki.opnsense.org/index.php/Develop:Backend/Using_Templates

I've tried to change the HelloWorld to custom name but having an issue in save function. Configd reports execute error, but couldn't figure out the issue. How should I investigate the issue? More specifically, as shown below, where the "template reload OPNsense.HelloWorld" in the reload action supposed to exist in order to let configd.py run successfully?

$bckresult = trim($backend->configdRun("template reload OPNsense.HelloWorld"));

Thanks in advance.

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2