Re: [symfony-users] Re: ACL Groups

2011-03-12 Thread Johannes Schmitt
What I meant with using roles is that you can add ACL rules based on a role that the user has. Groups would basically only be used to assign a set of roles to the user and would have no meaning beyond that. Kind regards, Johannes On Fri, Mar 11, 2011 at 6:59 PM, maxpowel maxpo...@gmail.com

[symfony-users] Re: j'ai modifier ma base de données

2011-03-12 Thread Mourad Majdoub
J’espère que cet article t'aidera, c'est en Anglais, :) http://particul.es/blog/index.php?post/Doctrine-generate-migrations-or-how-to-upgrade-your-database-in-production On Mar 10, 4:33 pm, mustapha habia habia...@gmail.com wrote: je travaille sur un projet/site avec Symfony, le problème est

[symfony-users] Symfony Distributions : sfGuard ?

2011-03-12 Thread NicoB
I have one question for Symfony's dev team. Distributions is a good thinks, and I would like to know if a CMF/CMS oriented distribution with sfGuard is possible, if not what's the plan for sfGuard ? Thanks -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] [symphony-users][Symfony2] Where to register a custom format

2011-03-12 Thread ryan weaver
Hey Marc- The best answer to your question is to add a listener on the core.request event. This is called very early in Symfony2 and is a very good spot to grab the request object and modify it (it's actually where the Router modifies the Request). Check out this part of the docs:

Re: [symfony-users] Production environment

2011-03-12 Thread Federico Bernardin
Hi Vincent, yes mod_rewrite is enable. But my problem is only in the production environment, in the test environment al works correctly and I don't know why. Thanks Federico Il giorno 11/mar/2011, alle ore 19.51, Vincent Lechemin ha scritto: Did you enable mod_rewrite? Or just check

AW: [symfony-users] How to activate Doctrine Extensions in Symfony 2 (PR 7)

2011-03-12 Thread Juergen Kober
Hello Christophe, thank you for insisting that this is the easy way. I've managed to get the Doctrine master, replace the right files and now sluggable und timestampable are back! Thanks for the great work! Regards Jürgen Am 11.03.2011 20:11 Uhr schrieb Christophe COEVOET unter s...@notk.org:

[symfony-users] SF2 PR7 STD - Implementation MongoDB

2011-03-12 Thread César Hernández
Good morning Yesterday is testing the standard version PR7 at first I mistook it 1 .- did not come with vendor 2 .- check.php the file was not in the web folder but app 3 .- . page presentation / web / app_dev.php / (more properly ) Well, I read the documentation and run

Re: [symfony-users] SF2 PR7 STD - Implementation MongoDB

2011-03-12 Thread Christophe COEVOET
Le 12/03/2011 17:02, César Hernández a écrit : Good morning Yesterday is testing the standard version PR7 at first I mistook it 1 .- did not come with vendor There is a tarball with the vendors on the symfony.com website and another one without them. If you use the git repo you need to run the

[symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
Hello, I have a model which has a collection of notes attached to it. So for example I access $show-getNotes() and that gives me a Doctrine_Collection. However I want it to be sorted by the date it was created (ie orderBy('a.created_at'). What is the best way to do that? Should I simply

Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Gábor Fási
You can add orderBy to your relation definition like this: Gallery: columns: title: string(255) relations: Images: local: id foreign: gallery_id foreignAlias: Gallery type: many orderBy: position taken from

[symfony-users] [Symfony2]: http-basic with sha1 password encoder doesn't work anymore

2011-03-12 Thread olimination
Hello, I have configured following security config in app/config/config.yml: security: encoders: Symfony\Component\Security\Core\User\User: sha1 providers: main: users: admin: { password: sha1pw, roles: ROLE_ADMIN } firewalls:

[symfony-users] Symfony Project - Linux

2011-03-12 Thread corneliusparkin
Hi I hope someone can help me. I started a symfony project on windows7 and want to roll it out to a shared linux machine. I do not have access to httpd.conf so have to find alternate ways to make it works. I have configured the .htaccess file under public_html to look as follows: Options

Re: [symfony-users] [Symfony2]: http-basic with sha1 password encoder doesn't work anymore

2011-03-12 Thread Johannes Schmitt
We have made a change in the way how passwords are hashed. Therefore, your sha1 hash will be different for the same password; you simply need to rehash your real password and put the new hash in the configuration. Kind regards, Johannes On Sat, Mar 12, 2011 at 8:11 PM, olimination

Re: [symfony-users] [Symfony2]: http-basic with sha1 password encoder doesn't work anymore

2011-03-12 Thread olimination
Hi Johannes, thanks for the quick response. I'm not sure yet how I should rehash my password. I used before a simple online SHA1 generator. What do you mean exactly with rehash? regards, Oli Am 12.03.2011 20:42, schrieb Johannes Schmitt: We have made a change in the way how passwords are

[symfony-users] Including 3rd party classes

2011-03-12 Thread pzwosta
Hi, I try to include a 3rd party (Zend) class. The directory structure is like that: \vendor \name \lib \name Class.php (includes class Name_Class) \Subdir SubClass (includes Name_Subdir_SubClass)

Re: [symfony-users] Symfony Project - Linux

2011-03-12 Thread oscar balladares
Hi. You can look for installing symfony on shared hosting on Saint Google.. There is a chapter that describes how to solve that issue on this page http://www.symfony-project.org/book/1_0/03-running-symfony In resume, if you don't have access to httpd.conf at all, you have to create a index.php

Re: [symfony-users] Including 3rd party classes

2011-03-12 Thread Christophe COEVOET
Le 12/03/2011 22:51, pzwosta a écrit : Hi, I try to include a 3rd party (Zend) class. The directory structure is like that: \vendor \name \lib \name Class.php (includes class Name_Class) \Subdir

Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
Cool, I tried it out like so Note: actAs: Timestampable: updated: disabled: true created: type: date format: Y-m-d options: orderBy: created_at DESC Does the order by for a relation component have to specifically go on the relationship definition?

Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
I ended up figuring it out.. it was because I was sorting by date, on a field that I set as only a date so the timestamp part wasnt included in the sort. Developer error.. as usual :P On Sat, Mar 12, 2011 at 18:12, Alex Pilon alex.pi...@gmail.com wrote: Cool, I tried it out like so Note: