Re: [symfony-users] autentication problem

2011-04-05 Thread oscar balladares
Hi. This is a great S2 security tutorial. It should fill your needs. http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/ 2011/4/2 bitgandtter yasman...@gmail.com first i´m really new in symfony 2.0. I am developing an application using symfony

[symfony-users] Re: symfony2 twig subform error messages

2011-04-05 Thread François CONSTANT
Hi, I've got the exact same issue. Andreas, have you found the solution? PS: I'm using PR9. Cheers, On Feb 16, 9:34 pm, Andras are...@epiac.hu wrote: Hi, A bit shorter version of my question: I have aformwith a subform called enterprise. How can I print the field validationerrorswith

Re: [symfony-users] how to include footer

2011-04-05 Thread Gábor Fási
This should be working. Show us the relevant parts of both files. On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote: I tried to include footer below  ?php  echo $sf_content ? using include_slot('footer'), Where i defined slot in a module called home/ indexsuccess.php. but i did

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread oscar balladares
You must define the route as far as I know. Did you try it already? Regards. 2011/4/4 Christian Schaefer cae...@gmail.com no. and why would I? there is no controller to handle that route. instead the security component provides a listener that intercepts. or did that change as well? On

[symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Christian Schaefer
no as there is no controller to jump to. the SecurityBundle intercepts an event and handles it in a listener not a controller. it always returns 403 or a RedirectResponse. On 5 Apr., 09:20, oscar balladares liebegr...@gmail.com wrote: You must define the route as far as I know. Did you try it

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 09:53, Christian Schaefer a écrit : no as there is no controller to jump to. the SecurityBundle intercepts an event and handles it in a listener not a controller. it always returns 403 or a RedirectResponse. No. When the credentials are wrong the request is not blocked by the

[symfony-users] specific apache directive by environment

2011-04-05 Thread Denis Fingonnet
Hello all, I would like to use strong apache openssl certificate authentication for an API accessible in a specific symfony application. I have 3 applications : frontend, backend and soap So I want to add apache directives for the soap app. Can I do it ? If yes, how ? Thanks a lot for the

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Dennis Jacobfeuerborn
Yes I posted both the routing definition (which is exactly like the one you posted) and the security configuration in the first posting of this thread. Both haven't changed since the update from PR8 except for the added ^'s in the firewall patterns for the changes in PR9. Regards, Dennis --

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Dennis Jacobfeuerborn
On Tuesday, April 5, 2011 10:04:37 AM UTC+2, Christophe COEVOET wrote: Le 05/04/2011 09:53, Christian Schaefer a �crit : no as there is no controller to jump to. the SecurityBundle intercepts an event and handles it in a listener not a controller. it always returns 403 or a

[symfony-users] sfFormExtra and TinyMCE, weird behavior

2011-04-05 Thread Manu
Note: I'm not sure if this is a tinyMCE or symfony bug, but the resulting behavior is very strange : I want to add this: Files somefile.png DefaultType application/x-httpd-php /Files This gets saved ok (as lt; and gt; in the html), but when I reopen my form for editing, it gets

[symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-05 Thread Christophe Beyer
I want to use the Doctrine function addCustomDatetimeFunction on my EntityManager. I tried this : $config = new \Doctrine\ORM\Configuration(); $config-addCustomDatetimeFunction('MONTH', 'Doctrine\ORM\Query\AST\Functions\Month'); // My custom function $em =

[symfony-users] Re: symfony2 twig subform error messages

2011-04-05 Thread Andras
No, I finally decided not to use a subform (see below). Originally I wanted to use a subform because 'termsAccepted' was not a property of the class Enterprise. 'termsAccepted' and the class Enterprise were both properties of the Registration class. Now both Enterprise and Registration have the

[symfony-users] Re: [Symfony 2] Problem with a very simple thing

2011-04-05 Thread weaverryan
Hey Antonio- This is a common exception, and one that I hope we'll be improving in certain places to be more clear. First, follow Carl's advice and see which version of Symfony you're using - there was a few recent changes in how you reference your bundles. This error means that you're

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 15:03, Christophe Beyer a écrit : I want to use the Doctrine function addCustomDatetimeFunction on my EntityManager. I tried this : $config = new \Doctrine\ORM\Configuration(); $config-addCustomDatetimeFunction('MONTH', 'Doctrine\ORM\Query\AST\Functions\Month'); // My custom

[symfony-users] Re: [Symfony2] Access a service from a entity

2011-04-05 Thread ericclemmons
Ok, if it's Entity, sure, then it's bad practice. In his example, it is clearly a PageModel, so he can inject whatever dependencies he needs for his domain model to work as expected: ?php class PageModel { public function __construct($layoutManager) { ... Obviously, the problem here is

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Tim Nagel
The system still needs to know the path of the route, it doesnt need to direct to a controller: See FOS\UserBundle: https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/config/routing/security.xml and

[symfony-users] Extjs TabPanel

2011-04-05 Thread Mariah
Hi, I'm using Extjs librarie with symfony,but I have a big problem with the TabPanel,everytime I click on a Tab,the content is loaded out of the panel! Does any one of you had this problem before? have a good time. -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] [Symfony2] Access a service from a entity

2011-04-05 Thread Carl
Conceptually it's bad practice because entities are just meant to *store*data. The only methods they should have are simple set and get methods. Nothing more. If you start adding other logic to them, then you're changing the purpose of entities and it can start to make your code more difficult

[symfony-users] sf2, multiple mappings

2011-04-05 Thread Michael Holm
Hi, Im running sf prerelease9, i have this weird problem.. when i generate my entities in a bundle.. i dont get all the mappings, example: Here is my yml file, it will only generate mappings in my entity file to the last mapping, beer_price, its like shot_price doesnt even exists.. does somebody

Re : [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread mamadou aliou diallo
hello, i receive too many email from this group ... how can i stop that? regards. Mamadou Aliou Bobo Diallo De : Dennis Jacobfeuerborn djacobfeuerb...@gmail.com À : symfony-users@googlegroups.com Envoyé le : Mar 5 avril 2011, 14h 19min 56s Objet : Re:

[symfony-users] [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
Hi all, i have just installed sf2 pr10 using mongodb and got the FOS UserBundle. All seems properly installed, I can successfully create a user in the command line. But when I try to access any of the FOS routes I get redirected to /login and see the 310 too many redirects http error... Even if I

[symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread seven seven
Hello again, I have migrated to SF2 PR9 and the error I have is the same is this: *Fatal error*: Declaration of Stof\DoctrineExtensionsBundle\Listener\LoggableListener::getLogEntryClass() must be compatible with that of Gedmo\Loggable\AbstractLoggableListener::getLogEntryClass() in*

Re: [symfony-users] Re: AsseticBundle Configuration + Usage

2011-04-05 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 until there is a doc up, i just post findings about assetic here. we have now lessphp working if you want a less filter. you can update your vendors.sh to get lessphp from git://github.com/leafo/lessphp.git and put it into vendor/lessphp/ to make it

[symfony-users] Re: symfony2 doctrine:data:load error ?

2011-04-05 Thread vt.dave
Hey everyone, I'm starting to get my Symfony2 project off the ground and need to migrate the 1000's (100,000's) of rows from my old DB into the new schema created by Doctrine2. I came here because I was getting this error on doctrine:data:load: C:\Website\3.0\Symfonyphp app/console

[symfony-users] [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread seven seven
Hi all, I have a question related to the DoctrineExtensions... I was trying to use DoctrineExtensionsBundle in sf2 PR8 and I get some errors when I try schema:create. It seems that the Doctrine 2.0.x will not work with DoctrineExtensionsBundle ? Am I correct ? I should put the Doctrine 2.0 ?

[symfony-users] Re: [Symfony 2] Problem with a very simple thing

2011-04-05 Thread Carl
Hi Antonio, Which version of Symfony2 are you using? Also, how do you reference your bundles? There was a recent change to the codebase that removed the word Bundle when referencing bundles internally: https://github.com/symfony/symfony/commit/ade83e2e80a605ec4a23bed1d3862cf5adebd33e However,

[symfony-users] Re: Problem with a very simple thing

2011-04-05 Thread zil...@gmail.com
Hello, make sure that you (and apache user) have physical access to your bundle. Try chown chmod on your bundle. Peter -- 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] [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 16:47, Conrad a écrit : Hi all, i have just installed sf2 pr10 using mongodb and got the FOS UserBundle. All seems properly installed, I can successfully create a user in the command line. But when I try to access any of the FOS routes I get redirected to /login and see the 310 too

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 17:09, seven seven a écrit : Hello again, I have migrated to SF2 PR9 and the error I have is the same is this: *Fatal error*: Declaration of Stof\DoctrineExtensionsBundle\Listener\LoggableListener::getLogEntryClass() must be compatible with that of

Re: Re : [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread oscar balladares
Just what I said. There must be a route defined for _security_check As Tim Nagel pointed. 2011/4/5 mamadou aliou diallo bobova...@yahoo.fr hello, i receive too many email from this group ... how can i stop that? regards. Mamadou Aliou Bobo Diallo -- *De :*

[symfony-users] [Symfony2] Validation changes from PR9 to PR10

2011-04-05 Thread Donald
Hi, I have run into a problem that I can't figure out how to fix. I was using the validation framework to test that certain values were being correctly flagged as invalid, and it was working fine in PR9, but after updating to PR10, I'm getting errors. Here's a small test that can recreate my

Re: [symfony-users] [Symfony2] Validation changes from PR9 to PR10

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 19:35, Donald a écrit : Hi, I have run into a problem that I can't figure out how to fix. I was using the validation framework to test that certain values were being correctly flagged as invalid, and it was working fine in PR9, but after updating to PR10, I'm getting errors.

[symfony-users] Re: [Symfony2] Validation changes from PR9 to PR10

2011-04-05 Thread Donald
Thanks a lot. I'll be sure to read that with each update from now on. On Apr 5, 12:42 pm, Christophe COEVOET s...@notk.org wrote: Le 05/04/2011 19:35, Donald a crit : Hi, I have run into a problem that I can't figure out how to fix. I was using the validation framework to test that

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Dennis Jacobfeuerborn
On Tuesday, April 5, 2011 10:01:43 AM UTC+2, merk wrote: The system still needs to know the path of the route, it doesnt need to direct to a controller: See FOS\UserBundle: https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/config/routing/security.xml and

Re: Re : [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Dennis Jacobfeuerborn
On Tuesday, April 5, 2011 6:52:08 PM UTC+2, Matador wrote: Just what I said. There must be a route defined for _security_check As Tim Nagel pointed. There is. See the first post of this thread. Regards, Dennis -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Re: how to include footer

2011-04-05 Thread Gábor Fási
This looks fine to me, it should be working. Make sure you're seeing error messages (if any), so access it via your dev front controller. On Tue, Apr 5, 2011 at 08:55, Laxmi laxmipsa...@gmail.com wrote: in the layout i added include_slot('footer'); This is what I added in footersuccess.php

[symfony-users] Re: [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
Nevermind Stof, I found (yes, lol) the security configuration at the bottom of the documentation and now I have the login field :) Thanks On Apr 5, 6:25 pm, Christophe COEVOET s...@notk.org wrote: Le 05/04/2011 16:47, Conrad a crit : Hi all, i have just installed sf2 pr10 using mongodb and

[symfony-users] Re: [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
Good Question... to be honest: I don't know.. After re-reading the installation guide (like the hundredth time) I recognized the little paragraph for the routes to be avaiable for unauthorized users.. But I don't know how and where I need to set those routes public.. I tried this and similar

[symfony-users] [Symfony2] Model vs Entity?

2011-04-05 Thread Ruben de Vries
I've been playing around with sf2 lately and been looking at code from the various github projects but I'm still not really sure what (and more importantly *why*) is going on with the Model classes. I've picked up on the concept that Entities should remain fairly untouched from complex (business)

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread seven seven
Ok, that was weird, because my DoctrineExtensions wasn't up to date and I know that yesterday I had downloaded it from github. Anyway that fixed the issue . And I am using SF2 - PR10. Thanks allot ! On Tue, Apr 5, 2011 at 7:29 PM, Christophe COEVOET s...@notk.org wrote: Le 05/04/2011 17:09,

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread seven seven
Hi again ! Well everything worked great till I tried to run *php app/console doctrine:schema:create* and it gives the following error: *$ ../../php/php.exe app/console doctrine:schema:create* *PHP Catchable fatal error: Argument 1 passed to Gedmo\Mapping\MappedEventSubscr*

[symfony-users] Re: PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread pzwosta
Hi Dennis, I had similar problems and made these mistakes: - the login-form has to post the content (not method=get) - instead of pattern: ^/login now I use pattern ^/login$ (don't know why) regards Peter On 4 Apr., 22:27, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com wrote: I just

[symfony-users] How to get security user in PHP template

2011-04-05 Thread pzwosta
Hi, In the acme demo (PR 9) I saw: {{ app.user ? app.user.username : 'Anonymous' }} In my php-template I found out there was a session attribute _security_profile that contains the username and password when the user is looged in but I can't find the correct way to get it unserialized. The

[symfony-users] Re: PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Dennis Jacobfeuerborn
On Tuesday, April 5, 2011 9:48:25 PM UTC+2, pzwosta wrote: Hi Dennis, I had similar problems and made these mistakes: - the login-form has to post the content (not method=get) - instead of pattern: ^/login now I use pattern ^/login$ (don't know why) The fix is to remove the login

Re: [symfony-users] Re: PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 21:48, pzwosta a écrit : Hi Dennis, I had similar problems and made these mistakes: - the login-form has to post the content (not method=get) - instead of pattern: ^/login now I use pattern ^/login$ (don't know why) Because /login_check matches the ^/login regex but not

Re: [symfony-users] How to get security user in PHP template

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 21:58, pzwosta a écrit : Hi, In the acme demo (PR 9) I saw: {{ app.user ? app.user.username : 'Anonymous' }} In my php-template I found out there was a session attribute _security_profile that contains the username and password when the user is looged in but I can't find the

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 21:22, seven seven a écrit : Hi again ! Well everything worked great till I tried to run *php app/console doctrine:schema:create* and it gives the following error: *$ ../../php/php.exe app/console doctrine:schema:create* *PHP Catchable fatal error: Argument 1 passed to

Re: [symfony-users] [Symfony2] Model vs Entity?

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 19:59, Ruben de Vries a écrit : I've been playing around with sf2 lately and been looking at code from the various github projects but I'm still not really sure what (and more importantly *why*) is going on with the Model classes. I've picked up on the concept that Entities should

[symfony-users] Re: [Symfony2] Security ACL and hierarchical tree of users and groups.

2011-04-05 Thread Gustavo Adrian
Ok I think I have an idea about this case. I'd appreciate if you can give me your opinion about this. Having the scenario commented before I'd do the following: . First, I'd need to implement my own SecurityIdentityRetrievalStrategy, since I have my own user - department tree. So I'd override the

[symfony-users] Re: How to get security user in PHP template

2011-04-05 Thread pzwosta
Thanks $app-getUser() and the security.context exist in the container but doesn't return the username though authentication was successful. The username only exists in the _security_profile token of the session which I don't know how to unserialize. regards Peter On 5 Apr., 22:21, Christophe

Re: [symfony-users] Re: How to get security user in PHP template

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 22:51, pzwosta a écrit : Thanks $app-getUser() and the security.context exist in the container but doesn't return the username though authentication was successful. The username only exists in the _security_profile token of the session which I don't know how to unserialize.

[symfony-users] css, js and images in other domain

2011-04-05 Thread huertascar
hello, I have to save my documents (css, images, js) in a different domain, but when I use the tinymce editor the popups doesn't load information, those windows are blank. Who can I to resolved it? -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] The CSRF token is invalid. Please try to resubmit the form

2011-04-05 Thread symfonyMan
Hello, i got this error when i try to submit my form. The CSRF token is invalid. Please try to resubmit the form it worked good in PR8 and when i updated to PR10 ... thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] The CSRF token is invalid. Please try to resubmit the form

2011-04-05 Thread oscar balladares
You must render the hiddens fields. twig: form {{ form_hidden(form) }} . input type='submit' / /form 2011/4/5 symfonyMan ezziani.cha...@gmail.com Hello, i got this error when i try to submit my form. The CSRF token is invalid. Please try to resubmit the form it worked good in

Re: [symfony-users] The CSRF token is invalid. Please try to resubmit the form

2011-04-05 Thread oscar balladares
This is not especific to PR10, if you do {{ form_field(form) }} it will output everything needed (errors, hiddens, labels, and fields) But if you access each filed like: {{ fom_field(form.somePropertyName) }} {{ form_error(form.somePropertyName) }} etc... then you must explicity render the