[+] MO: Add Module controller, Cheque and Bankwire modules use it

This commit is contained in:
rMalie
2011-12-22 16:31:03 +00:00
parent e78adabdb7
commit eefa793840
12 changed files with 311 additions and 165 deletions
+5 -12
View File
@@ -32,18 +32,11 @@
/* SSL Management */
$useSSL = true;
include(dirname(__FILE__).'/../../config/config.inc.php');
require('../../config/config.inc.php');
Tools::displayFileAsDeprecated();
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/cheque.php');
if (!Context::getContext()->customer->isLogged(true))
Tools::redirect('index.php?controller=authentication&back=order.php');
$cheque = new Cheque();
echo $cheque->execPayment($cart);
include_once(dirname(__FILE__).'/../../footer.php');
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
Tools::redirect('index.php?controller=module&module=cheque&process=payment');