Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Reading from (and writing to) /conf/config.xml
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading from (and writing to) /conf/config.xml (Read 2430 times)
mihak
Jr. Member
Posts: 70
Karma: 5
Reading from (and writing to) /conf/config.xml
«
on:
March 21, 2021, 06:43:53 pm »
I saw several methods used across front-end and backend packages how configuration is read and written to config.xml
Is there (documented?) reviewed and recommended approach for all devs how to read from and write to config.xml? On front-end I would appreciate guidance on php and js patterns for read/write, on the backend at least a read/write pattern for shell scripting and Python.
Or is the recommended approach to use API and CLI exclusively and not ever even think about config.xml directly?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Reading from (and writing to) /conf/config.xml