return;
} if ($shop->
getMain()) { $shop =
$shop->
getMain();
} try { /** @var Compiler $compiler */
$compiler =
$this->container->
get('theme_compiler'
);
$compiler->
compileJavascript('new',
$shop->
getTemplate(),
$shop);
$compiler->
compileLess('new',
$shop->
getTemplate(),
$shop);
} catch (Exception
$e) { $this->
View()->
assign(['success' => false, 'message' =>
$e->
getMessage()]);
return;
} $this->
View()->
assign([ 'success' => true,
]);
}