[symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
Hi everyone, Recently I've decided to change routes from Yaml declaration to annotations using FrameworkExtraBundle, which is now shipped with Symfony2. Previously I was able to link several routes to one action: management__users: pattern: /management/users defaults: { _controller:

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Thomas Rabaix
If you plan to distribute your bundle, does not use the FrameworkExtraBundle and use the xml routing definition. On 14 mars 2011, at 09:40, Nikita Korotaev wrote: Hi everyone, Recently I've decided to change routes from Yaml declaration to annotations using FrameworkExtraBundle, which is

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? -- 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

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 10:03, Nikita Korotaev a écrit : My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? XML is validated throuch XSD. And the annotations for the routing are not a core feature. You need a third-party bundle

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Thomas Rabaix
you cannot overwrite information defined in annotation ... On 14 mars 2011, at 10:03, Nikita Korotaev wrote: My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? -- If you want to report a vulnerability issue on

[symfony-users] Re: Fatal errors (new xsd and class not found)

2011-03-14 Thread Lideln
Nobody ? The only other case I found on google was spanish and I didn't understand a word of it :) Don't tell me I'm the only one to have the PR7 not working once downloaded and extracted ? :-/ Any help from one of the developers would be appreciated so I can continue my coding. Thanks in

[symfony-users] Request parameters in sub-request state

2011-03-14 Thread cammanderson
Hi Guys, When using the render or ESI tags, must the request parameters be selectively passed through or can a sub-request access the master- request parameters? e.g. a request parameter x1,x2,x3... exists in scope to the master request, but is there a way to make it automatically present to the

[symfony-users] ESI/Caching - Cookies Google Analytics (and other cookies)

2011-03-14 Thread cammanderson
Hi Guys, Playing around with ESI/Caching and Symfony2. Is there a way to strip cookies (or have some not affecting your caching strategy)? I have some cookies that show up from other applications or uses (such as phpmyadmin or Google Analytics tracking cookie) that I need to clear back so that

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Nikita Korotaev
Ok, that's clear. However FrameworkExtraBundle was included in the Symfony PR7 and Fabien on Symfony Live in Paris was talking about annotations over Yaml(not mentioning xml). I'm little bit concerned about performance when using annotations: it seems to me that all my controllers in the

[symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
Hi, I have this file apps/backend/config/view.yml. default: http_metas: content-type: text/html metas: #title:symfony project #description: symfony project #keywords: symfony, project #language: en #robots: index, follow stylesheets:

Re: [symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Gábor Fási
Do you have include_stylesheets in your layout? Any of your view.ymls contain a [-background] directive? On Mon, Mar 14, 2011 at 12:03, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this file apps/backend/config/view.yml. default:  http_metas:    content-type: text/html  metas:  

[symfony-users] Re: Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
Yes, i have included ?php include_stylesheets() ? in the layout. What is a [-background] directive? Just if I include backend.css in the view.yml of the module it is loaded. Javier On Mar 14, 1:26 pm, Gábor Fási maerl...@gmail.com wrote: Do you have include_stylesheets in your layout? Any of

[symfony-users] MyUser extend sfUser class

2011-03-14 Thread Cornelius Parkin
Hi I wrote a class called MyUser which extends the sfUser class in order to add some functionality. I then added the following in the factories.yml file in order for Symfony to use MyUser instead of sfUser. user: class: MyUser This is what I could pick up from the web. However, when I try

Re: [symfony-users] MyUser extend sfUser class

2011-03-14 Thread Stéphane
Hello, First, please use the _dev.php controllers to get beautifull exception stack traces ;) Second, clear-cache ? Third, check you have put the MyUser.class.php in the lib/ directory of your project. Fourth, you can rename your userIsAuthentic() to -isAuthentic as you're talking to a $sf_user

[symfony-users] Assetic routing config problem

2011-03-14 Thread ral...@email.it
Hi all, I am trying to setup Assetic within S2 sandbox using the instructions found in the S2 conference slides http://www.slideshare.net/kriswallsmith/introducing-assetic-asset-management-for-php-53 Anyway I am getting two errors: 1) Unrecognized options document_root under assetic', triggered

[symfony-users] sfWidgetFormJQueryI18nDate bug correction

2011-03-14 Thread Adrien Sulpice
Hello, I found the class sfWidgetFormJQueryI18nDate (at http://trac.symfony-project.org/attachment/ticket/8625/sfWidgetFormJQueryI18nDate.class.php ) This class is very useful but I found a bug. When I select the 8 or 9, no days were selected. This bug is due to parseInt which interpret the string

[symfony-users] missing sandbox

2011-03-14 Thread Faltu Email
http://symfony.com/doc/2.0/quick_tour/the_big_picture.html where can I download the sandbox. the page does not exist anymore. -- 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

[symfony-users] Re: Production environment

2011-03-14 Thread Michael Van Sickle
Is your production deployment on the root of the domain? If not, then mod_rewrite needs to know the base name using the RewriteBase directive in your .htaccess. For example, if your base address for your site is http://www.example.com/mysite, then the .htaccess would need a line 'RewriteBase

[symfony-users] Changing sfConfig variables dynamically in functional test

2011-03-14 Thread pascal.laroc...@gmail.com
How can we change the sfConfig variables dynamically in a functional test in symfony 1.4.9? Seems that what I have doesn't work Thanks Example: My action uses a variable in the app.yml to gate the access to the site. I'd like to set the date dynamically to test the different sections.

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-14 Thread Christopher Yee Mon
ooh. I forgot to mention, once you edit the job_show_user route to use the _slug actions the http://localhost/frontend_dev.php which is the index action of the job module breaks, however the originally intended /job/:company_slug/:location_slug/:id/:position_slug route does work, so if I directly

Re: [symfony-users] Re: Production environment

2011-03-14 Thread Federico Bernardin
Hi, yes the production deployment is on the root of the domain. If I write: http://www.mysite.com/app.php/hello/Fede the page is blank, but if I write http://www.mysite.com/app_dev.php/hello/Fede all works correctly. Thanks in advance. federico Il giorno 14/mar/2011, alle ore 13.05, Michael Van

[symfony-users] Re: [Symfony2] Doctrine ORM Data Fixtures

2011-03-14 Thread Albert Jessurum
You're missing $manager-flush(); after the last persist, so that the changes are persisted to the database. -- 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] Re: Doctrine ORM Data Fixtures

2011-03-14 Thread dustin10
I had tried that already, but it wasn't working. Just tried it again and still no luck. I looked at a lot of the fixture examples in other bundles and none of them called flush() so I figured that doctrine called this for you after the load() method. Any other ideas? Thanks, Dustin On Mar 14,

Re: [symfony-users] missing sandbox

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 15:17, Faltu Email a écrit : http://symfony.com/doc/2.0/quick_tour/the_big_picture.html where can I download the sandbox. the page does not exist anymore. The sandbox has been replaced by the standard edition which is available on the symfony.com website. -- Christophe | Stof