Reputation: 6768
I am new in Luci/lua,work on LuCI 15.05-154-gb81a22b and lua 5.1 Face problem to execute view show me bellow error
Controller syntax is bellow
e=entry({"admin","network","macclone"},arcombine(template("admin_network/mac_clone")),_("MacClone"),14)
e.leaf=true
Controller successfully call view page.
View
<%#
Copyright 2008-2009 Steven Barth <[email protected]>
Copyright 2008-2015 Jo-Philipp Wich <[email protected]>
Licensed to the public under the Apache License 2.0.
-%>
<%-+header-%>
<div id="cbi-network">
<h2>hello</h2>
</div>
<%-+footer-%>
View execute with error
Why this error appear?How to solve this error?
Note: header load necessary css files like:bootstrap
Upvotes: 0
Views: 884
Reputation: 330
It says that it cant find the template admin_network/mac_clone. You need to add a model page mac_clone. Also change the
arcombine(template("admin_network/mac_clone"))
to cbi("mac_clone")
Upvotes: 0