[ADD]静态页面导入
This commit is contained in:
10
controllers/error.go
Normal file
10
controllers/error.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package controllers
|
||||
|
||||
type ErrorController struct {
|
||||
BaseController
|
||||
}
|
||||
|
||||
func (c *ErrorController) Error404() {
|
||||
c.Data["Content"] = "Page not found"
|
||||
c.TplName = "error/404.html"
|
||||
}
|
||||
Reference in New Issue
Block a user