src/AppBundle/Controller/PartsController.php line 38

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: User
  5.  * Date: 3/22/2019
  6.  * Time: 8:32 PM
  7.  */
  8. namespace AppBundle\Controller;
  9. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  10. use Symfony\Component\HttpFoundation\Request;
  11. class PartsController extends Controller
  12. {
  13.     public function navContactAction()
  14.     {
  15.         $contact $this->getDoctrine()->getRepository('AppBundle:Contact')->findBy(['isTop'=>true]);
  16.         return $this->render('parts/nav_contact.html.twig',[
  17.             'contact' => $contact
  18.         ]);
  19.     }
  20.     public function navSocialAction()
  21.     {
  22.         $contact $this->getDoctrine()->getRepository('AppBundle:Contact')->findBy(['isTop'=>true]);
  23.         return $this->render('parts/nav_social.html.twig',[
  24.             'contact' => $contact
  25.         ]);
  26.     }
  27.     public function footerAction()
  28.     {
  29.         $subscribe $this->getDoctrine()->getRepository('AppBundle:Page')->find(11);
  30.         $aboutInfo $this->getDoctrine()->getRepository('AppBundle:Page')->find(1);
  31.         $dateYear = new \DateTime();
  32.         return $this->render(':parts:footer.html.twig',[
  33.             'subscribe' => $subscribe,
  34.             'about' => $aboutInfo,
  35.             'year' => $dateYear->format('Y'),
  36.         ]);
  37.     }
  38.     public function cbaAction(Request $request){
  39.         $cba $request->getSession()->get('cba');
  40.         return $this->render(':parts:currency.html.twig',[
  41.            'currency' => $cba
  42.         ]);
  43.     }
  44. }