Chce aby po wpisaniu w url np. ...../....../web wchodziło na stronę logowanie. Niestety mam błąd No route found for "GET /" ERROR - Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at C:\xampp\htdocs\PhpProject1\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\RouterListener.php line 176 Jak ustawiem dokładną ścieżkę to wchodzi. Jak to zrobić by Symfony bezpośrednio wchodziło na nią
Mam dwa pakiety
app/routing.yml
[/property_management:
resource: "@PropertyManagementBundle/Resources/config/routing.yml"
prefix: /
user_user:
resource: "@UserUserBundle/Resources/config/routing.yml"
prefix: /php]
plik routing w pakiecie
property_management_homepage:
resource: "@PropertyManagementBundle/Controller/"
type: annotation
prefix: /
kontrolery w pakiecie
[php]
**
* Property controller.
*
* @Route("/property1")
*
* @Template()
*/
class DashboardController extends Controller
{
/**
* @Route(
* "/",
* name = "/")
* @Method({"GET", "POST"})
*
*
* @Template()
*/
/**
* @Route(
* "/new",
* name = "/new"
* )
* @Template()
*/
/**
* Finds and displays a Property entity.
*
* @Route("/{id}", name="show")
* @Method("GET")
* @Template()
*/
/**
* Displays a form to edit an existing Property entity.
*
* @Route("/{id}/edit", name="edit")
* @Method({"GET", "POST"})
*
* @Template()
*/
/**
* Deletes a Property entity.
*
* @Route("/{id}", name="delete")
* @Method("DELETE")
*
* @Template()
*/
i drugi plik routing
user_trainig_annotations:
resource: "@UserUserBundle/Controller"
type: annotation
prefix: /
_check_path:
path: /login-check
_logout:
path: /logout
controlery w UserUserBundle
/**
* @Route(
* "/login",
* name = "/login"
* )
* @Template()
*/
/**
* @Route(
* "/register",
* name = "/register"
* )
* @Template()
*/
/**
* @Route(
* "/reset-password/{actionToken}",
* name = "/reset-password/"
* )
*/
}
/**
* @Route(
* "/account-activation/{actionToken}",
* name = "user_activateAccount"
* )
*/