Le 08/05/2011 20:40, keymaster a écrit :
Using Beta1, Symfony2 installs and runs fine with the Acme demo bundle working perfectly.

Apache Rewrite is configured and working, and so both of the following urls with and without app_dev.php nicely show the welcome screen of the Acme demo.

http://localhost/Symfony/web/app_dev.php/
http://localhost/Symfony/web/

However, I cannot seem to remove the app_dev.php from any other url, from any other bundles I've created.

For example, I have a StaticPagesBundle which works fine for this url:
http://localhost/Symfony/web/app_dev.php/static/termsandconditions

but will not work for the same url with app_dev.php removed:
http://localhost/Symfony/web/static/termsandconditions

It gives me the error screen:

=============


  Oops! An Error Occurred


    The server returned a "404 Not Found".

Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused
==========

This is the route:

_static_pages:
    pattern:  /static/{name}
    defaults: { _controller: MyCompanyStaticPagesBundle:Default:display }

This is the controller:
<?php

namespace MyCompany\StaticPagesBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller {
    public function displayAction($name) {
return $this->render ( "MyCompanyStaticPagesBundle:Default:$name.html.twig" );
    }
}

Any pointers on where to look?

When the application is not available at the root of the domain, you need to edit the .htaccess file to add the RewriteBase rule.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to