hello world with viewJS
This commit is contained in:
26
app/src/Controller/DefaultController.php
Normal file
26
app/src/Controller/DefaultController.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
* Class DefaultController
|
||||
*
|
||||
* @package App\Controller
|
||||
*/
|
||||
class DefaultController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* This render test template that uses vueJS
|
||||
*
|
||||
* @Route("/default", name="default")
|
||||
*/
|
||||
public function app(): Response
|
||||
{
|
||||
return $this->render('default/app.html.twig');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user