Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Controller;
  4.  
  5. use App\Entity\Videos;
  6. use Doctrine\ORM\EntityManagerInterface;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\Routing\Annotation\Route;
  9.  
  10. class VideosController extends AbstractController
  11. {
  12.  
  13.     /**
  14.      * @Route("/videos/", name="videos_page")
  15.      */
  16.     public function show(EntityManagerInterface $em)
  17.     {
  18.         $videos = Videos::getHtmlLink($em);
  19.  
  20.         return $this->render('videos.html.twig',
  21.             [
  22.                 'videos' => $videos
  23.             ]);
  24.     }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement