_trigger_fatal_error("[json] parameter 'url' cannot be empty"); return; } $content = array(); $data = file_get_contents($params['url']); if(empty($data)) return false; if(!is_callable('json_decode')) { require_once 'JSON.php'; $json = new Services_JSON(); $content = $json->decode( trim(file_get_contents($params['url'])) ); } else { $content = json_decode(trim(file_get_contents($params['url']))); } if($params['debug']===true) { echo "
"; 
    	print_r($content);
    	echo "
"; } if (!empty($params['assign'])) { $smarty->assign($params['assign'],$content); } else { return $content; } } ?>