[luci] luci Digest, Vol 42, Issue 2

Arconas arconas at gmail.com
Thu Nov 10 12:04:27 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
>
>
Thanks for your help, Jow :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20111110/1bde4a60/attachment.html>


More information about the luci mailing list