run main() web报错
来源:5-14 商品管理功能controller&View开发(下)

慕前端904247
2019-07-30
[DBUG] 2019/07/30 17:11 HEAD: /assets/*file -> github.com/kataras/iris/core/router.StripPrefix.func1()
[DBUG] 2019/07/30 17:11 GET: /product/a/l -> controllers.ProductController.GetALL()
[DBUG] 2019/07/30 17:11 GET: /assets/*file -> github.com/kataras/iris/core/router.StripPrefix.func1()
[DBUG] 2019/07/30 17:11 GET: /product/add -> controllers.ProductController.GetAdd()
[DBUG] 2019/07/30 17:11 POST: /product/update -> controllers.ProductController.PostUpdate()
[DBUG] 2019/07/30 17:11 Application: 1 registered view engine(s)
[DBUG] 2019/07/30 17:11 Application: running using 1 host(s)
[DBUG] 2019/07/30 17:11 Host: addr is 127.0.0.1:8080
[DBUG] 2019/07/30 17:11 Host: virtual host is 127.0.0.1:8080
[DBUG] 2019/07/30 17:11 Host: register startup notifier
[DBUG] 2019/07/30 17:11 Host: register server shutdown on interrupt(CTRL+C/CMD+C)
[DBUG] 2019/07/30 17:11 Host: server will ignore the following errors: [http: Server closed]
Now listening on: http://127.0.0.1:8080
Application started. Press CTRL+C to shut down.
[ERRO] 2019/07/30 17:11 template: shared/layout.html:135:9: executing “shared/layout.html” at : error calling yield: yield was called, yet no layout defined
[ERRO] 2019/07/30 17:15 template: shared/layout.html:135:9: executing “shared/layout.html” at : error calling yield: yield was called, yet no layout defined
<div class="be-content">
{{yield}}
</div>
对前端不是很理解,如果老师闲暇时候有时间抽空解答下吧谢谢
1回答
-
Cap
2019-07-31
详细在QQ群里说下
00
相似问题