daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Aug 20th, 2018 112 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. /**
  2.      * @Route("/ogloszenia/{school}/{page}", name="ogloszenia")
  3.      * @Template("client/blog.html.twig")
  4.      */
  5.     public function ogloszenia(string $school, int $page=1){
  6.         $defaultActions = $this->get(client_homeService::class);
  7.         $blog = $this->get(client_blogService::class);
  8.         $em = $this->getDoctrine();
  9.         if($school == 'lo') $szkola = 'Liceum';
  10.         else if($school == 'gim') $szkola = 'Gimnazjum';
  11.         else $szkola = 'Szkoła Podstawowa';
  12.         $breadcrumbs = [
  13.             [
  14.                 'name' => 'Ogłoszenia',
  15.                 'url' => '/ogloszenia',
  16.             ],
  17.             [
  18.                 'name' => $szkola,
  19.                 'url' => '/ogloszenia/'.$school,
  20.             ],
  21.  
  22.         ];
  23.         return [
  24.             'menu' => $defaultActions->getMenu(),
  25.             'contact_address' => $defaultActions->getInfo()['contact_address'],
  26.             'contact_phone' =>  $defaultActions->getInfo()['contact_phone'],
  27.             'contact_email' =>  $defaultActions->getInfo()['contact_email'],
  28.             'category' => 'Ogłoszenia',
  29.             'news' => $blog->getNews($em,$page,7,$school,'ogloszenia'),
  30.             'paginator' => $blog->getPages($em,$page,7,$school,'ogloszenia'),
  31.             'bannersRight' => $blog->getBanners($em,$school,'right'),
  32.             'breadcrumbs' => $breadcrumbs,
  33.         ];
  34.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top