Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function indexAction( \Twig\Environment $twig ) : Response |
||
31 | { |
||
32 | $params = []; |
||
33 | $shop = $this->container->get( 'shop' ); |
||
34 | |||
35 | foreach( $this->container->getParameter( 'aimeos_shop.page' )['account-index'] as $name ) |
||
|
|||
36 | { |
||
37 | $params['aiheader'][$name] = $shop->get( $name )->header(); |
||
38 | $params['aibody'][$name] = $shop->get( $name )->body(); |
||
39 | } |
||
40 | |||
41 | return new Response( |
||
42 | $twig->render( '@AimeosShop/Account/index.html.twig', $params ), |
||
43 | 200, ['Cache-Control' => 'no-store, , max-age=0'] |
||
44 | ); |
||
59 |