init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package controllers
|
||||
|
||||
type MainController struct {
|
||||
BaseController
|
||||
}
|
||||
|
||||
func (this *MainController) Index() {
|
||||
isLogin := "1"
|
||||
if(this.GetSession("user") == nil) {
|
||||
isLogin = "0"
|
||||
}
|
||||
this.Data["isLogin"] = isLogin
|
||||
this.viewLayoutTitle("AnyTunnelCloud", "web/index", "index")
|
||||
}
|
||||
Reference in New Issue
Block a user