Created
August 7, 2019 17:22
-
-
Save parzibyte/7d30b30452ed0ffe301a4f8a6e3fc7dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
# El nombre de la clase debe coincidir con el nombre del archivo .php | |
class HolaController | |
{ | |
public function hola() | |
{ | |
return new Response( | |
'<html><body>Hola mundo desde <strong>Symfony</strong><br>parzibyte.me</body></html>' | |
); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment