Difference between revisions of "Luci Quick Start"
(→Introduce) |
(→More Examples) |
||
Line 18: | Line 18: | ||
Notice: After submit a change on controller files, user has to remove the luci cache files (under /var/luci-*) to take affect. | Notice: After submit a change on controller files, user has to remove the luci cache files (under /var/luci-*) to take affect. | ||
+ | <br> | ||
+ | <br> | ||
=More Examples= | =More Examples= | ||
Dragino software includes the admin-full luci modules which includes the administrator web interface and lots of source code /examples.User can easily to test and change the Luci Web Interface by modifying these files. The main files location are: | Dragino software includes the admin-full luci modules which includes the administrator web interface and lots of source code /examples.User can easily to test and change the Luci Web Interface by modifying these files. The main files location are: |
Latest revision as of 06:18, 13 October 2014
Introduction
Dragino use Luci to generate its Web Interface. Luci mainly CBI models to manage the Linux Config files. Detail of the use/programm of Luci can refer below links:
Understand how to genetate a page
Each web page in Luci is an Entry. The Entry is defined in the luci controller directory: /usr/lib/lua/luci/controller. For example, the /usr/lib/lua/luci/controller/admin includes all the defination of the administrator Web UI.
When generate a Web Page, the entry may:
- Call a simple action
- Call a CBI model to manage Linux configuration.
- Call a normal HTML template
A detail of how to use the Entry and some basic examples, can be found at this link:HowTo: Write Modules
Notice: After submit a change on controller files, user has to remove the luci cache files (under /var/luci-*) to take affect.
More Examples
Dragino software includes the admin-full luci modules which includes the administrator web interface and lots of source code /examples.User can easily to test and change the Luci Web Interface by modifying these files. The main files location are:
- Controller: /usr/lib/lua/luci/controller/admin
- CBI module: /usr/lib/lua/luci/model/cbi
- HTML-Template: /usr/lib/lua/luci/view