controllers

package
v0.0.0-...-769f433 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2014 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasePath, _ = filepath.Abs("")
View Source
var ROOT_DIR string = BasePath

定义项目根目录

View Source
var UPLOAD_DIR string = BasePath + "/www/upload/"

定义项目上传文件目录

Functions

func Bootstrap

func Bootstrap()

系统初始化变量

func CheckLogin

func CheckLogin(c *revel.Controller) revel.Result

检测登陆

Types

type App

type App struct {
	*revel.Controller
}

func (App) Index

func (c App) Index(admin *models.Admin) revel.Result

首页

func (App) Main

func (c App) Main(admin *models.Admin) revel.Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL