Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Controller;
- use App\Entity\Videos;
- use Doctrine\ORM\EntityManagerInterface;
- use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
- use Symfony\Component\Routing\Annotation\Route;
- class VideosController extends AbstractController
- {
- /**
- * @Route("/videos/", name="videos_page")
- */
- public function show(EntityManagerInterface $em)
- {
- $videos = Videos::getHtmlLink($em);
- return $this->render('videos.html.twig',
- [
- 'videos' => $videos
- ]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement