[luci] Again about names, howto writing modules and some other questions
Jo-Philipp Wich
xm at subsignal.org
Thu Nov 10 11:54:32 CET 2011
Hi.
> I have a problem with writing the test module.
> Following the instructions I create directory "controller" and
> subdirectory "myapp" in applications/myapplication/lucisrc/
> After that create a simple file mymodule.lua (as well as in the
> instruction) and write simple code:
>
> "module("luci.controller.myapp.mymodule", package.seeall)
In this case the module line must be changed to
module "luci.controller.myapplication.mymodule"
It is important that it directly corresponds to the filesystem path.
> Suppose there is a need to slightly change admin page. Remove
> unnecessarymenu items or add a special section for our device. Where are
> the necessary controllers, models and viewers ?
It is all in modules/admin-full/luasrc/controller/ - simply remove the
corresponding "entry()" and "node()" calls in there.
~ Jow
More information about the luci
mailing list