diff options
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 1 | ||||
-rw-r--r-- | modules/base/tool.go | 19 |
2 files changed, 1 insertions, 19 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index 24ee1d7f..64c97028 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -174,6 +174,7 @@ func init() { SecretKey = Cfg.MustValue("security", "SECRET_KEY") // Extensions. + newService() newLogService() newMailService() newRegisterService() diff --git a/modules/base/tool.go b/modules/base/tool.go index fc3b4c45..d0b6bfbf 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -67,25 +67,6 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string return code } -// TODO: -func RenderTemplate(TplNames string, Data map[interface{}]interface{}) string { - // if beego.RunMode == "dev" { - // beego.BuildTemplate(beego.ViewsPath) - // } - - // ibytes := bytes.NewBufferString("") - // if _, ok := beego.BeeTemplates[TplNames]; !ok { - // panic("can't find templatefile in the path:" + TplNames) - // } - // err := beego.BeeTemplates[TplNames].ExecuteTemplate(ibytes, TplNames, Data) - // if err != nil { - // beego.Trace("template Execute err:", err) - // } - // icontent, _ := ioutil.ReadAll(ibytes) - // return string(icontent) - return "not implement yet" -} - // AvatarLink returns avatar link by given e-mail. func AvatarLink(email string) string { return "http://1.gravatar.com/avatar/" + EncodeMd5(email) |