예제 #1
0
 public static function ifActiveMarkIt(array $matchPattern, $allInThisControllers = [])
 {
     $currentPage = FrontController::whereIm();
     $currentPage = mb_strtolower($currentPage);
     $selected = Null;
     $selected = in_array($currentPage, $matchPattern) ? "active" : Null;
     if (count($allInThisControllers)) {
         foreach ($allInThisControllers as $controller) {
             if (mb_strtolower(FrontController::getController()) == mb_strtolower($controller)) {
                 $selected = "active";
             }
         }
     }
     return $selected;
 }
예제 #2
0
파일: dotpay.php 프로젝트: dotpay/dotpay
 /**
  * Returns variables required by Smarty channel list template
  * @return array
  */
 private function getSmartyVars()
 {
     $_GET['module'] = $this->name;
     $pc = FrontController::getController('dotpaypaymentModuleFrontController');
     return $pc->getArrayForSmarty();
 }