Symfony

4

Solutions

10

Contributors

Symfony is a PHP web application framework for MVC applications. Symfony provides an architecture, components and tools for developers to build complex web applications faster. Symfony is aimed at building robust applications in an enterprise context by speeding up the creation and maintenance of web applications and replacing repetitive coding tasks. It has a low performance overhead used with a bytecode cache and gives developers full control over the configuration.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am starting to learn symfony and have a question about routes.

I am watching this tutorial:
https://www.youtube.com/watch?v=HchMW8EhWPU&t=933s

When I create a new controller I am using the annotation routing but that does not appear to work.

<?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class TodoController extends Controller
{
    /**
     * @Route("/todos", name="todo_list")
     */
    public function listAction(Request $request)
    {
        return $this->render('todo/index.html.twig');
    }
}

Open in new window


when I enter in /todos I get a 404 error

Oops! An Error Occurred
The server returned a "404 Not Found".

I also created index.html.twig in Resources/views/todo/

routing:

app:
    resource: '@AppBundle/Controller/'
    type: annotation
0
Turn Insights Into Action
Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

We need a website for offering jobs and recruitment just like this one https://www.bayt.com
there are different ways to do that. we can develop our own frame work for it or we can use open source for the backend and maybe tamplates for the front end.
I want you to analyse this project requirements .
Please help me to find the requirements for this project.
0

Symfony

4

Solutions

10

Contributors

Symfony is a PHP web application framework for MVC applications. Symfony provides an architecture, components and tools for developers to build complex web applications faster. Symfony is aimed at building robust applications in an enterprise context by speeding up the creation and maintenance of web applications and replacing repetitive coding tasks. It has a low performance overhead used with a bytecode cache and gives developers full control over the configuration.

Top Experts In
Symfony
<
Monthly
>

No Top Experts for this time period. Answer questions to earn the title!