public function getSections($pageName)
{
$context = $this->container->get('aimeos_context')->get();
$pagesConfig = $this->container->getParameter('aimeos_shop.page');
$result = array('aibody' => array(), 'aiheader' => array());
$langid = $context->getLocale()->getLanguageId();
$tmplPaths = $this->container->get('aimeos')->get()->getCustomPaths('client/html/templates');
$view = $this->container->get('aimeos_view')->create($context, $tmplPaths, $langid);
$context->setView($view);
if (isset($pagesConfig[$pageName])) {
foreach ((array) $pagesConfig[$pageName] as $clientName) {
$client = \Aimeos\Client\Html\Factory::createClient($context, $tmplPaths, $clientName);
$client->setView(clone $view);
$client->process();
$result['aibody'][$clientName] = $client->getBody();
$result['aiheader'][$clientName] = $client->getHeader();
}
}
return $result;
}