[luci] Can't understand how to di simple things with buttons

ZioPRoTo (Saverio Proto) zioproto at gmail.com
Wed Feb 3 19:49:42 CET 2010


> I guess something like:
> c=m:section(SOMETYPE,"commands").

OK I figured out that if I do

c = m:section(SimpleSection,"commands")

just before the "return m" another section is rendered...

I also understood that it uses this HTML file:
/usr/lib/lua/luci/view/cbi/nullsection.html

if I change it I see the output on the web page.

so how can I use a new section type instead of "SimpleSection" and how
I bind it to its cbi template html file ?

And if I put a "HTTP post" button on the cbi html template file how do
I trigger an action from that after the user pushed the button ?

Saverio


More information about the luci mailing list