3 namespace Mixstore\StaticBundle\Controller
;
5 use Symfony\Bundle\FrameworkBundle\Controller\Controller
;
7 class MainController
extends Controller
9 public function homeAction()
11 $pkgRepository = $this
14 ->getRepository('MixstoreStoreBundle:Package');
17 $news = $pkgRepository
20 //get images sources for carousel
21 $bannersArray = $pkgRepository
24 return $this->render('MixstoreStaticBundle::home.html.twig', array(
25 'bannersArray' => $bannersArray,
30 public function aboutAction()
32 return $this->render('MixstoreStaticBundle::about.html.twig');
35 public function policyAction()
37 return $this->render('MixstoreStaticBundle::policy.html.twig');