X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=documentation%2FModulesHowTo.md;h=c4dbb982058c0d200da3f44cb7ab55a4226f909d;hp=3f70b788c5ddf8a00c855023d5373334d8b5b5ed;hb=3bae3c7f5e8c383e481667fcfeae7765a1dacc75;hpb=4b11843e4ce3e7636d67cf3e987ae94ca8c8977d diff --git a/documentation/ModulesHowTo.md b/documentation/ModulesHowTo.md index 3f70b788c..c4dbb9820 100644 --- a/documentation/ModulesHowTo.md +++ b/documentation/ModulesHowTo.md @@ -101,7 +101,7 @@ Now type */cgi-bin/luci/my/new/template_' ('_[http://localhost:8080/luci/my/new/ You may notice those fancy <% %>-Tags, these are [wiki:Documentation/Templates|template markups] used by the LuCI template processor. It is always good to include header and footer at the beginning and end of a template as those create the default design and menu. -## CBI models +## CBI models The CBI is one of the uber coolest features of LuCI. It creates a formular based user interface and saves its contents to a specific UCI config file. You only have to describe the structure of the configuration file in a CBI model file and Luci does the rest of the work. This includes generating, parsing and validating a XHTML form and reading and writing the UCI file. So let's be serious at least for this paragraph and create a real pratical example *_lucidir_/model/cbi/myapp-mymodule/netifaces.lua* with the following contents: