public function listplansAction() { if ($this->isLoggedIn() == 0) { $this->_redirect('/admin/index'); } $this->view->loginStatus = $this->isLoggedIn(); $fitnessPlans = new FitnessMembershipPlans(); $fitnessLanguage = new FitnessLanguages(); $defaultLanguage = $this->getDefaultLanguage(); $this->view->languageList = $fitnessLanguage->getLanguages(); $this->view->planData = $fitnessPlans->listPlans($defaultLanguage); }
/** * function that handles the recurring paypal payment method * @params amount,advance period,free months,plan id * @author lekha * @date 3/27/2012 * */ public function recurringpaymentAction() { $this->view->loginStatus = $this->isLoggedIn(); //if($this->view->loginStatus == 1) //$this->view->memberStatus = $this->checkUserMembership(); if ($this->isLoggedIn() == 0) { $this->_redirect('/index/login'); } $fitnessUser = new FitnessUserGeneral(); $fitnessMembership = new FitnessMembershipPlans(); $sess = new Zend_Session_Namespace('UserSession'); $userDetails = $fitnessUser->getUserbyUsername($sess->username); $this->view->user_id = $userDetails['user_id']; $this->view->plan = $this->_request->getParam('plan'); $amount = $fitnessMembership->getPlans($this->view->plan); $this->view->siteurl = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $this->view->baseUrl(); $this->view->recurring = $amount['membership_rate']; $this->view->freemonths = $this->_request->getParam('free'); $this->view->advperiod = $this->_request->getParam('period'); }