Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BaseController.groovy:
- class BaseController
- {
- def loggedIn = isLoggedIn()
- def isLoggedIn =
- {
- if(!session.user)
- {
- return false
- }
- return true
- }
- }
- MainController.groovy:
- class MainController extends BaseController
- {
- def index =
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment