Move controller and page to new package.
This commit is contained in:
parent
c48f6bb9f4
commit
4e2f186dad
11 changed files with 29 additions and 18 deletions
|
|
@ -1,17 +1,18 @@
|
|||
package controllers
|
||||
|
||||
import (
|
||||
"goweb/controller"
|
||||
"goweb/msg"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type Contact struct {
|
||||
Controller
|
||||
controller.Controller
|
||||
}
|
||||
|
||||
func (a *Contact) Get(c echo.Context) error {
|
||||
p := NewPage(c)
|
||||
p := controller.NewPage(c)
|
||||
p.Layout = "main"
|
||||
p.Name = "contact"
|
||||
p.Title = "Contact us"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue