SHARE
TWEET

Untitled

a guest May 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * @extends coldmvc.Controller
  3.  */
  4. component {
  5.    
  6.     /**
  7.      * @events pre:([\w])Controller.(list|create)
  8.      */
  9.     function checkLoggin() {
  10.        
  11.         if (!session.isLoggedIn) {
  12.             redirect({controller="login", action="logout"});
  13.         }
  14.  
  15.     }
  16.  
  17. }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top