https://github.com/tarlepp/bob-mcdonald
https://github.com/tarlepp/bob-mcdonald
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tarlepp/bob-mcdonald
- Owner: tarlepp
- License: mit
- Created: 2021-06-27T15:41:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T23:12:59.000Z (over 3 years ago)
- Last Synced: 2024-04-09T21:52:31.291Z (about 2 years ago)
- Language: PHP
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is this?
Some guy asked following question on slack;
---
Hi all, I’ve got what has got to be the most basic symfony question. I’ve used Symfony as part of Drupal, but this is my first time to mess with it directly. I’m trying to get it going on an existing project and I can not get it to recognize my route for the life of me.
Here is my controller:
```
final class IndexController extends AbstractController
{
/**
* @Route("/", methods={"GET"})
* @return Response
*/
public function indexAction(): Response
{
return $this->render('index.html.twig');
}
}
```
I’ve been banging my head against this for a couple of hours now, and I’m sure it is something silly.
---
So in this repository I'm trying to show how to solve this issue.
## License
[The MIT License (MIT)](LICENSE)
Copyright © 2021 Tarmo Leppänen