php - How to make custom URL in Symfony-2.3.12? -


I'm having trouble setting up a custom URL in Symfony-2.3.12 I'm new to Symphony I'm a Symphony in Fedora -2.3.12 I am using. I have installed the application that I can call using URL

  http: //localhost/symfony/web/app_dev.php/sample/hello   

I would like a URL like this:

  http: // localhost / symfony / sample / hello   

I gave it in Symfony-2.3 I have read routing documents. But it is unable to understand how to do it. Please help me solve this problem. thank you in advanced.

Symphony 2 has two default front controllers. App.php for production environment and for development environment app_dev.php All request route with this Front Controller.

  localhost / symphony / web / app_dev.fp / sample / hello   

means that you are using the development environment.

  Localhost / Symphony / Web / Sample / Hello   

means that you are using production environments.

You can add virtual hosts in httpd-vhosts.conf to change

  http: // localhost / symfony / web /   

Path with your desire path

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -