예제 #1
0
파일: RRRest.php 프로젝트: ChaseHQ/RegRoll
 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);
 }
예제 #2
0
 public function showRollURL($rollId)
 {
     $this->renderArray['RollURL'] = 'http://' . RRApplication::getHost() . RRApplication::getWebApplicationDirectory() . 'roll/' . $rollId;
     $this->renderTemplate = $this->twigObj->loadTemplate('URLGet.html');
 }