Skip to content

Missing php header in the first script src/AppBundle/Controller/LuckyController.php #6116

Closed
@olberger

Description

@olberger

It seems a pretty common FAQ that the Route isn't recognized if the LuckyController.php doesn't start with the PHP header '<?php', and unfortunately that's the first code that any beginner in Symfony will try to write (copy/paste).

I'd suggest to add that header to the code in https://github.com/symfony/symfony-docs/blob/3.0/book/page_creation.rst#creating-a-page-route-and-controller

Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting feedbackhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions