找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: tea***

神雕教程之--为你的luci添加自助高级配置界面(含源码)

 火.. [复制链接]
发表于 2016-7-15 21:59 | 显示全部楼层
謝謝分享,,学习了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-10 12:58 | 显示全部楼层
顶学习了,正准备试呢谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-10 17:00 | 显示全部楼层
不知道,我潘多拉能不能刷进去
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-10 20:09 | 显示全部楼层
这么好的教程没人顶?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-12-28 13:39 | 显示全部楼层
lucktu 发表于 2016-4-10 19:15
估计是我的openwrt有点兼容问题(还是出现如下错误),有空换一个版本试试。

楼主的controller少了第一行,应该如下,加上下面的第一行之后重启路由器,界面出现
  1. module("luci.controller.abcdefg", package.seeall)
  2. function index()
  3.         if not nixio.fs.access("/etc/config/abcdefg") then
  4.                 return
  5.         end
  6.         entry({"admin", "services", "abcdefg"}, cbi("abcdefg"), _("My Tab")).dependent = true
  7. end
复制代码

点评

加了这一行还是报错 /usr/lib/lua/luci/dispatcher.lua:491: Invalid controller file found The file '/usr/lib/lua/luci/controller/abcdefg.lua' contains an invalid module line. Please verify whether the  详情 回复 发表于 2017-1-24 14:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-1-23 14:40 | 显示全部楼层
楼主看到加我下Q287562722,有偿求教
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-1-24 14:22 | 显示全部楼层
85892 发表于 2016-12-28 13:39
楼主的controller少了第一行,应该如下,加上下面的第一行之后重启路由器,界面出现

加了这一行还是报错
/usr/lib/lua/luci/dispatcher.lua:491: Invalid controller file found
The file '/usr/lib/lua/luci/controller/abcdefg.lua' contains an invalid module line.
Please verify whether the module name is set to 'luci.controller.abcdefg' - It must correspond to the file path!
stack traceback:
        [C]: in function 'assert'
        /usr/lib/lua/luci/dispatcher.lua:491: in function 'createindex'
        /usr/lib/lua/luci/dispatcher.lua:517: in function 'createtree'
        /usr/lib/lua/luci/dispatcher.lua:201: in function 'dispatch'
        /usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

点评

你可以参考这个项目https://github.com/AlexZhuo/luci-app-pdnsd  详情 回复 发表于 2017-1-24 15:27
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-1-24 14:23 | 显示全部楼层
报错呀楼主
/usr/lib/lua/luci/dispatcher.lua:491: Invalid controller file found
The file '/usr/lib/lua/luci/controller/abcdefg.lua' contains an invalid module line.
Please verify whether the module name is set to 'luci.controller.abcdefg' - It must correspond to the file path!
stack traceback:
        [C]: in function 'assert'
        /usr/lib/lua/luci/dispatcher.lua:491: in function 'createindex'
        /usr/lib/lua/luci/dispatcher.lua:517: in function 'createtree'
        /usr/lib/lua/luci/dispatcher.lua:201: in function 'dispatch'
        /usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

点评

重启模块,重新进来,就可以了  详情 回复 发表于 2019-2-27 18:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-1-24 15:27 | 显示全部楼层
wt19891207 发表于 2017-1-24 14:22
加了这一行还是报错
/usr/lib/lua/luci/dispatcher.lua:491: Invalid controller file found
The file  ...

你可以参考这个项目https://github.com/AlexZhuo/luci-app-pdnsd
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-14 15:03 | 显示全部楼层
请问是用什么编辑器做的,我的lua文件修改了以后,路由器中直接看还是上一次的状态,好像没修改似的,怎么回事
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-11-27 18:12 | 显示全部楼层
good!!!!!!!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-12-23 11:31 | 显示全部楼层
感谢楼主,正学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-12 11:27 | 显示全部楼层
正在入门,看着非常受用,感谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-27 18:59 | 显示全部楼层
wt19891207 发表于 2017-1-24 14:23
报错呀楼主
/usr/lib/lua/luci/dispatcher.lua:491: Invalid controller file found
The file '/usr/lib/ ...

重启模块,重新进来,就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-2 10:33 | 显示全部楼层
学习学习,受教了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 21:26

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表