Demo entry 6783199

Symfony Controller

   

Submitted by anonymous on Feb 02, 2019 at 14:47
Language: PHP. Code size: 516 Bytes.

<?php

namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

class HomeController extends AbstractController
{
    /**
     * @Route("/", name="home")
     */
    public function index()
    {
        return $this->render('home/index.html.twig');
    }

    /**
     * @Route("/more", name="more_info")
     */
    public function more()
    {
        return $this->render('home/more.html.twig');
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).