Пример #1
0
 public function load()
 {
     if (Request::isPost()) {
         if (Security::checkToken() == false) {
             # - throw exception or redirect the user
             # or render a content using
             # View::take(<resources.view>);exit;
             throw new AccessNotAllowedException('What are you doing?');
         }
     }
 }