OPNsense Forum

English Forums => Development and Code Review => Topic started by: reply2manish on March 08, 2021, 08:42:01 AM

Title: Save to file in Grid example plugin
Post by: reply2manish on March 08, 2021, 08:42:01 AM
Hello All,

I am new to development so I followed the instruction to create a plugin Hello world (https://docs.opnsense.org/development/examples/helloworld.html) and Grid Example (https://docs.opnsense.org/development/examples/using_grids.html)

Now I am struggling to save the information in a file from the Grid Example. Can anyone help me adding email addresses in the form to file.conf and also when I remove them, the email address are removed from the file too.

Thanks in advance
MK
Title: Re: Save to file in Grid example plugin
Post by: mimugmail on March 09, 2021, 05:05:19 PM
like this?

https://github.com/opnsense/plugins/blob/master/net/siproxd/src/opnsense/service/templates/OPNsense/Siproxd/siproxd_passwd.cfg
Title: Re: Save to file in Grid example plugin
Post by: reply2manish on March 10, 2021, 09:49:30 AM
Hi mimugmail,

Thanks for the info, let me check the same.

MK