为什么luci无法执行调度目标

时间:2016-03-07 06:32:00

标签: lua openwrt luci

我是Luci / lua的新手,处理 LuCI 15.05-154-gb81a22b 和lua 5.1执行视图面临的问题显示错误

控制器语法如下

e=entry({"admin","network","macclone"},arcombine(template("admin_network/mac_clone")),_("MacClone"),14)
            e.leaf=true

Controller成功调用视图页面。

查看

<%#
 Copyright 2008-2009 Steven Barth <steven@midlink.org>
Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
Licensed to the public under the Apache License 2.0.
-%>
<%-+header-%>
<div  id="cbi-network">
<h2>hello</h2>
</div>
<%-+footer-%>

查看执行错误

enter image description here

为什么会出现此错误?如何解决此错误?

注意:标头加载必要的css文件,如:bootstrap

1 个答案:

答案 0 :(得分:0)

它说无法找到模板admin_network / mac_clone。您需要添加模型页面mac_clone。也改变了 arcombine(template("admin_network/mac_clone"))cbi("mac_clone")

相关问题