[luci] how to pass parameter to wifi.lua

Deric Panet-Raymond dpraymond at satcomdirect.com
Sat Mar 26 17:20:56 CET 2016


Parameters are passed in the URL by appending /<param1>/<param2> to the base url for that page.

You can reference any additional parameters using the arg[x] numbers. Just make sure you initialize to "" at the top so if there is no additional parameters you don't generate a null reference and break your page

Sent from my phone

On Mar 26, 2016, at 11:15 AM, 子文 <u8j9 at 163.com<mailto:u8j9 at 163.com>> wrote:

Dear all
  There are a parameter named arg[1] in file model/cbi/admin_network/wifi.lua. I want to know how the luci pass the parameter to wifi.lua such as wifi0.network1





_______________________________________________
luci mailing list
luci at lists.subsignal.org<mailto:luci at lists.subsignal.org>
https://lists.subsignal.org/mailman/listinfo/luci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20160326/ecfcdd0e/attachment.html>


More information about the luci mailing list