コード例 #1
0
ファイル: json.php プロジェクト: rohankhakurel/transvision
<?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);
 }