i am trying to add a new element using CBI as well as View (Template) using the openwrt Doc link is here :- https://openwrt.org/docs/guide-developer/luci
i have created a new element using CBI method but when i am trying to do the same thing using View(template ) i am getting is error:-
Failed to execute template dispatcher target for entry '/admin/status/view'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:74: Failed to load template 'admin_status/view'.
Error while parsing template '/usr/lib/lua/luci/view/admin_status/view.htm':
Syntax error in /usr/lib/lua/luci/view/admin_status/view.htm:63:unfinished string near '"'
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:74: in function '__init__'
/usr/lib/lua/luci/util.lua:65: in function 'Template'
/usr/lib/lua/luci/template.lua:27: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:824: in function </usr/lib/lua/luci/dispatcher.lua:823>
i have referred this link to make my view tab:-https://openwrt.org/docs/guide-developer/luci
and jow what do i do with you method ( view_tab.htm != view.htm /usr/lib/lua/luci/view/myapp-mymodule != /usr/lib/lua/luci/view/admin_status)
because i didn't understand it ?
I want you to please provide the output of cat /usr/lib/lua/luci/view/admin_status/view.htm because this is the broken file. The contents of view_tab.htm are not relevant at this point.