controllers

package
v0.0.0-...-331f973 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package controllers defines controllers for each router path

Package controllers defines controllers for each router path

Package controllers defines controllers for each router path

Index

Constants

View Source
const (
	Unknown = iota
	Adventurer
	Advocate
	Provider
	Supporter
	Home
	Faq
	Blog
	About
)

Define category code constants

View Source
const (
	DenyAutoLogin = "Another user has already enabled auto-login on this device"
)

TODO identify and add other constant strings

View Source
const IsChecked = "checked"

HTML value indicating that a checkbox or radio button is selected

Variables

View Source
var (
	// Name used for website title
	SiteTitle string = beego.AppConfig.String("apptitle")
)

Functions

func CatCodeToString

func CatCodeToString(code uint8) (catStr string)

CatCodeToString converts a const category code to a string

func UsrClear

func UsrClear(usrInp *models.RegFrm)

UsrClear clears form input data from a models.RegFrm struct

Types

type BlogController

type BlogController struct {
	beego.Controller
}

type BlogController declares a receiver for methods that define action common to all blog pages

func (*BlogController) Blog

func (bc *BlogController) Blog()

Blog controls the presentation of blog pages"

type CommentsController

type CommentsController struct {
	beego.Controller
}

type CommentsController declares a receiver for methods that define action common to all "comment pages", i.e. pages that accept user comments

func (*CommentsController) Comment

func (cc *CommentsController) Comment()

Comment controls the presentation and processing of all "comment pages"

type ConstructionController

type ConstructionController struct {
	beego.Controller
}

type ConstructionController declares a receiver for methods that define action common to all pages that are under construction

func (*ConstructionController) Construction

func (cp *ConstructionController) Construction()

Construction controls the presentation of pages under construction"

type HomeController

type HomeController struct {
	beego.Controller
}

type Home Controller declares a receiver for methods that define action on the home page. This includes all user auth actions

func (*HomeController) Delete

func (hc *HomeController) Delete()

Delete() is the active content handler for "/delete" * it presents and processes confirmation of a delete profile request

func (*HomeController) Get

func (hc *HomeController) Get()

Get selects the active content handler for "/" (the landing page) * it presents and processes the selected template

func (*HomeController) Login

func (hc *HomeController) Login()

Login() is the active content handler for "/login" * it presents and processes the login form

func (*HomeController) Logout

func (hc *HomeController) Logout()

Logout() is the handler for dummy template "/logout" * it deletes the current user session and sets activeContent to "/unknown" * bypassing the auto-login check on the "/" (home) landing page.

func (*HomeController) Profile

func (hc *HomeController) Profile()

Profile() is the active content handler for "/profile" * it presents and processes the profile form

func (*HomeController) Register

func (hc *HomeController) Register()

Register() is the active content handler for "/register" * it presents and processes the registration form

func (*HomeController) Restricted

func (hc *HomeController) Restricted()

Restricted() is the active content handler for dummy template "/restricted" * it creates a flash notice and redirects to home ("/"

Jump to

Keyboard shortcuts

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