Example #1
0
 public static function getViewId()
 {
     if (!App::getRegistry()->router) {
         // CLI compatibility
         return 0;
     }
     if (App::getRegistry()->router->getMode() == 0) {
         return Session::getActiveMainsideViewId();
     } else {
         return Session::getActiveViewId();
     }
 }