forked from IlchCMS/Ilch-2.0
/
Index.php
29 lines (25 loc) · 972 Bytes
/
Index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* @copyright Ilch 2.0
* @package ilch
*/
namespace Modules\Checkout\Controllers;
use Modules\Checkout\Mappers\Checkout as CheckoutMapper;
use Ilch\Date as IlchDate;
class Index extends \Ilch\Controller\Frontend
{
public function indexAction()
{
$checkoutMapper = new CheckoutMapper();
$checkout = $checkoutMapper->getEntries();
$amount = $checkoutMapper->getAmount();
$amountplus = $checkoutMapper->getAmountPlus();
$amountminus = $checkoutMapper->getAmountMinus();
$this->getLayout()->getHmenu()->add($this->getTranslator()->trans('checkout'), array('action' => 'index'));
$this->getView()->set('checkout', $checkout);
$this->getView()->set('amount', $amount);
$this->getView()->set('amountplus', $amountplus);
$this->getView()->set('amountminus', $amountminus);
$this->getView()->set('checkout_contact', $this->getConfig()->get('checkout_contact'));
}
}