Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Action delle tre rotte /php, /symfony, /vue
<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends Controller
{
/**
* @Route("/php", name="php_page")
*/
public function php()
{
return $this->render('php_page.html.twig');
}
/**
* @Route("/symfony", name="symfony_page")
*/
public function symfony()
{
return $this->render('symfony_page.html.twig');
}
/**
* @Route("/vue", name="vue_page")
*/
public function vue()
{
return $this->render('vue_page.html.twig');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.