// Merge -> 10309
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10333 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require('../../config/config.inc.php');
|
||||
require_once(_PS_MODULE_DIR_."/tntcarrier/classes/TntWebService.php");
|
||||
|
||||
global $smarty;
|
||||
|
||||
try
|
||||
{
|
||||
$tntWebService = new TntWebService();
|
||||
$follow[] = $tntWebService->followPackage($_GET['code']);
|
||||
}
|
||||
catch( SoapFault $e )
|
||||
{
|
||||
$erreur = $e->faultstring;
|
||||
echo $erreur;
|
||||
}
|
||||
catch( Exception $e )
|
||||
{
|
||||
$erreur = "Problem : follow failed";
|
||||
}
|
||||
$config['date'] = '%d/%m/%y';
|
||||
$config['time'] = '%I:%M %p';
|
||||
$smarty->assign('erreur', $erreur);
|
||||
$smarty->assign('config',$config);
|
||||
$smarty->assign( 'follow', $follow );
|
||||
$smarty->display('tpl/follow.tpl' );
|
||||
?>
|
||||
Reference in New Issue
Block a user