function register() { $seopluginCtrler = new SeoPluginsController(); $subscriptionActive = false; // check whetehr plugin installed or not if ($seopluginCtrler->isPluginActive("Subscription")) { $subscriptionActive = true; $utypeCtrler = new UserTypeController(); $userTypeList = $utypeCtrler->getAllUserTypes(); $this->set('userTypeList', $userTypeList); // include available payment gateways include SP_PLUGINPATH . "/Subscription/paymentgateway.ctrl.php"; $pgCtrler = new PaymentGateway(); $pgList = $pgCtrler->__getAllPaymentGateway(); $this->set('pgList', $pgList); $this->set('defaultPgId', $pgCtrler->__getDefaultPaymentGateway()); $this->set('spTextSubscription', $this->getLanguageTexts('subscription', $_SESSION['lang_code'])); } $this->set('subscriptionActive', $subscriptionActive); $this->render('common/register'); }