OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Typo in Hello world module & plugin code sample
« previous next »
  • Print
Pages: [1]

Author Topic: Typo in Hello world module & plugin code sample  (Read 2987 times)

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Typo in Hello world module & plugin code sample
« on: December 25, 2017, 11:33:57 pm »
Docs »
 Development Manual »
 Examples »
 Hello world module & plugin

https://docs.opnsense.org/development/examples/helloworld.html#add-actions

This add actions section example code line...
$bckresult = trim($backend->configdRun("template reload OPNsense.HelloWorld"));

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

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13689
  • Karma: 1176
    • View Profile
Re: Typo in Hello world module & plugin code sample
« Reply #1 on: December 26, 2017, 09:17:39 am »
Thanks, nice catch. Will change it in the templates, but will take a week or two to hit the online version.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Typo in Hello world module & plugin code sample
 

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