예제 #1
0
<?php

namespace Transvision;

/*
 * This view outputs a json or jsonp representation of search results
 */
// Log script performance in PHP integrated developement server console
Utils::logScriptPerformances();
// We die here because we never want to send anything more after the Json file
die(Json::output($json, isset($_GET['callback']) ? $_GET['callback'] : false));
예제 #2
0
파일: api.php 프로젝트: ClixLtd/pccupload
 /**
  * Client Fees
  *
  * @author David Stansfield
  */
 public function post_get_fees()
 {
     $results = array();
     $results = Model_Debtsolv::totalFeesPaid();
     return Json::output('success', '', $results);
 }