public function genRoll($serialAgainst = '') { $rollId = $this->_appInstance->generateRoll($serialAgainst); $result = new RESTResult(); $result->Data['RollID'] = $rollId; $result->Data['RollURL'] = 'http://' . RRApplication::getHost() . RRApplication::getWebApplicationDirectory() . 'roll/' . $rollId; echo json_encode($result, JSON_PRETTY_PRINT); }
public function showRollURL($rollId) { $this->renderArray['RollURL'] = 'http://' . RRApplication::getHost() . RRApplication::getWebApplicationDirectory() . 'roll/' . $rollId; $this->renderTemplate = $this->twigObj->loadTemplate('URLGet.html'); }