mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
bee generate scaffold model
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
// recipe
|
||||
// admin/recipe
|
||||
func generateView(vpath, crupath string) {
|
||||
absvpath := path.Join(crupath, vpath)
|
||||
absvpath := path.Join(crupath, "views", vpath)
|
||||
os.MkdirAll(absvpath, os.ModePerm)
|
||||
cfile := path.Join(absvpath, "index.tpl")
|
||||
if f, err := os.OpenFile(cfile, os.O_CREATE|os.O_EXCL|os.O_RDWR, 0666); err == nil {
|
||||
|
Reference in New Issue
Block a user