Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread stof
ng to some groups is implemented in FOS UserBundle (this is what the group are for in the bundle). -- 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 Googl

Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread stof
nstead of $user->getRoles() === array('ROLE_EDITOR') as he can have several roles. -- 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 Gro

Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread stof
ed instead ? the user could have some other roles which would make your statement fail. > $securityContext->isGranted('EDIT', $post); // true > > Kind regards, > Johannes > > -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, pl

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

2011-03-13 Thread stof
ctively does not exist) which should be "Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle" as you wrote in the point 3 of your mail. > > can guide me about it > -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] [Sf2] doctrine:schema:create

2011-03-02 Thread stof
with the configuration I just paste > here. > Any hints? > > Thanks, > Stefano The mapping definition should be in the configuration of the entity manager, not at the root of the doctrine.orm block. Not sure if this is why you get the exception but it is an issue with your config. --

Re: [symfony-users] [Symfony2][PR6] doctrine:data:load bug

2011-02-25 Thread stof
un Load command, it seems to me that it is trying to load > hidden > files and fail as the result. > When I remove hidden files, everything works. (but in this case svn is not > available :( ) > > Regards, > Nikita This has been fixed in the master branch. Regards -

Re: [symfony-users] [Symfony 2] How to route with default :action :module style found in Symfony 1?

2011-02-25 Thread stof
vior: https://github.com/hidenorigoto/DefaultRouteBundle Regards -- 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&qu

Re: [symfony-users] Re: EntityChoiceField : two issues

2011-02-23 Thread stof
ave access to the container. > > I will wait to see if my two first bugs are fixed in the (hopefully > upcoming) RC1 ! :) > > Thanks again, > Regards -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proje

Re: [symfony-users] [Symfony2] Secure area

2011-02-21 Thread stof
e to use the same firewall to handle the login and to securize the site as they don't share their context by default. Restricting the access has to be done with the access control map, not with the pattern of the firewall which is responsible of the authentication, not of the authorization.

Re: [symfony-users] [Symfony2] Custom web directory?

2011-02-21 Thread stof
On Mon, 21 Feb 2011 11:37:29 +0100, Jordi Boggiano wrote: > On 21.02.2011 10:43, stof wrote: >> If you use Assetic you will also have to give the path to the web folder >> in the assetic config. > > This makes me think that it should maybe be a kernel parameter. Defined &g

Re: [symfony-users] Re: [Symfony2] Custom web directory?

2011-02-21 Thread stof
On Mon, 21 Feb 2011 01:58:13 -0800 (PST), Daniel Londero wrote: > On 21 Feb, 10:43, stof wrote: >> It is possible as the core does not even know the path to the web folder. >> This is the reason why it is an argument of the assets:install command. > > That's great.

Re: [symfony-users] [Symfony2] Custom web directory?

2011-02-21 Thread stof
n know the path to the web folder. This is the reason why it is an argument of the assets:install command. Just take care to have the good path to the kernel in your front controller. If you use Assetic you will also have to give the path to the web folder in the assetic config. -- Christophe

Re: [symfony-users] Re: InvalidArgumentException: There is no extension able to load the configuration for "security.config"

2011-02-14 Thread stof
ssword" to use the form-based authentication. If you want to use the remember-me just add a checkbox "_remember_me". Regards -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this mes

Re: [symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread stof
>getOptions()); > The second argument of the Form::create method is the name of the form. This is a mandatory argument (an exception is now thown when not set but this was not the case in PR6) An empty name breaks the retrieving of the datas as the name corresponds to the variable name in $

Re: [symfony-users] Problem with groups in FOS Userbundle

2011-02-14 Thread stof
ever, I have tried to set up the use of groups and > have encountered teh following problem, This form had not been updated with the other when the Form component changed. This is now fixed. Just update your bundle to have the fix. -- Christophe | Stof -- If you want to report a vulnera

Re: [symfony-users] Creating database SQL and Class Entities from a yaml file

2011-02-11 Thread stof
mespace as this is the way the autoloader works to find the classes. You can look at the sandbox to see how a project should look: https://github.com/symfony/symfony-sandbox -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proj

Re: [symfony-users] Creating database SQL and Class Entities from a yaml file

2011-02-11 Thread stof
, a formatted list would be fine, or use > for each tag, not for a group of them. > > Thanks! > > Tac Btw, the up-to-date doc is at http://docs.symfony-reloaded.org/master/ -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Updating existing project (Newbie to symfony)

2011-02-11 Thread stof
ront controller of the dev environment to have an exception message. The message provided by Apache when an error 500 occurs does not says what was wrong. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Question about block

2011-02-11 Thread stof
says that the "parent" function exists and is used to display the content of the parent block : http://www.twig-project.org/doc/templates.html#parent-blocks -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.

Re: [symfony-users] Question about block

2011-02-11 Thread stof
ristophe Two solution: {% block title %}My title - {{ parent() }}{% endblock %} keeping the current layout or witing the part you always want outside of the block in the layout so it is not discarded when changing the block in a child template. -- Christophe | Stof -- If you want to report a

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-11 Thread stof
is the config: app.config: esi: ~ Regards -- 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 thi

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-11 Thread stof
g esi (to avoid loading the classes when not using it) -- 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

Re: [symfony-users] Re: [Symfony2] How to create Forms in PR6?

2011-02-11 Thread stof
t')" in the controllers) which is set in Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension as many other services. This service contains the dependencies of the form (validator, ...) to avoid you passing each dependency by hand (which is also possible by retrieving the

Re: [symfony-users] Problem setting up authentication in symfony2

2011-02-10 Thread stof
MemoryProvider, which is not "HelloBundle/Entity/User" but "Symfony\Component\Security\Core\User\User" as stated in the exception message. The doc about encoders is here: http://docs.symfony-reloaded.org/master/guides/security/users.html#configuring-encoders. Regards -- Christ

Re: [symfony-users] [Symfony2] - @HasLifecycleCallbacks

2011-02-10 Thread stof
all other Doctrine annotations, you have to add the @orm: prefix on the annotation. If you want to allow NULL values in the database, you have to use 'nullable="true"'. This is exactly what it does. Regards -- Christophe | Stof -- If you want to report a vulnerability i

Re: [symfony-users] Re: How to access symfony 2 command line

2011-02-08 Thread stof
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@googlegroup

Re: [symfony-users] [symfony 2]How to access symfony 2 command line

2011-02-08 Thread stof
What exception do you get ? The call stack is useless without the exception (which should be printed before that). Christophe On Tue, 8 Feb 2011 09:00:55 -0800 (PST), deepak wrote: > Hi > > I have checked out the symfony 2 sandbox but I am not able to access > the symfony console like we used t

Re: [symfony-users] Re: Trying to send emails

2011-02-08 Thread stof
othing appears about an error when sending the mail so it seems not to be in the Symfony code. Check your smtp parameters, and try using a real adress. Maybe the email sent from @example.com is just discarded as spam by the mail server. -- Christophe | Stof -- If you want to report a vulnerability is

Re: [symfony-users] Re: Trying to send emails

2011-02-08 Thread stof
On Tue, 8 Feb 2011 06:21:36 -0800 (PST), Javier Garcia wrote: > No idea? > Well, what is your problem exactly ? You don't ask any question in your previous mail. Thus, the logs say the mail is sent. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] [Symfony2] Instantiating a Form from within a template

2011-02-08 Thread stof
there to say "render the search form here" in a twig template? The render tag still exists in Twig. Where did you see it has been removed ? Thus, for a form search, you can add the form in your template without creating a Form instance for that and retrieve the parameter from the Reques

Re: [symfony-users] Friends of symfony UserBundle

2011-02-08 Thread stof
out security: http://docs.symfony-reloaded.org/master/guides/security/index.html -- 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&

Re: [symfony-users] [Symfony2 vPR6] Howto use WebProfilerBundle while using the PHP Templating engine for your website?

2011-02-08 Thread stof
nes: ['php','twig'] } > > But that throws an exception: No engine is able to work with the > "MyBundle:Dashboard:index.php.html" template. > > > How to fix this? The good syntax for the template name is 'MyBundle:Dashboard:index.html.php'.

Re: [symfony-users] [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread stof
gt; Any help or pointers in the right direction would be appriciated. > > > ../Frenck You have to enable the new SecurityBundle in your kernel as the security has been moved out of FrameworkExtension. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] Re: [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for "security.config"

2011-02-07 Thread stof
or the login pages. You have to use the same firewall for the login and the other pages as different firewalls don't share their context by default. The firewall handles the authentication, not the autorization. You should use the access control map for that. -- Christophe | Stof -- If yo

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread stof
On Mon, 7 Feb 2011 04:22:44 -0800 (PST), Manu wrote: > I'll have to rewrite sfDoctrineGuard's hashing methods and validators You can also extend the form provided in the plugin and unsetting the fields you don't want. -- Christophe | Stof -- If you want to report a vuln

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread stof
rst one to want that functionality on their > website ! The profile is not handled by sfDoctrineGuardPlugin. It is an extension point of the plugin to allow to add your own stuff in the user. How could the plugin know what stuff you add ? -- Christophe | Stof -- If you want to report a vulnera

Re: [symfony-users] Desactivate Twig auto escaping ?

2011-02-03 Thread stof
On Thu, 3 Feb 2011 08:57:43 +0100, Christophe Beyer wrote: > Hello, > > How can I desactivate the Twig auto escaping ? > > Thanks ! Just xonfigure it this way in the config file: twig.config: autoescape: false Regards -- Christophe | Stof -- If you want to report

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread stof
schema. And, of course, this requires the type > to be registered as well. > > The must be a universal solution, and I hope that it will be added to > the Symfony documentation. > The console also boots the bundles. So this will work in the console too. -- Christophe | Sto

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread stof
s. :) > No, it can't be done in autoload.php. The autoload file is required at the very beginning of the request. At this time, even the kernel does not exist so you cannot access any service as they don't exist. -- Christophe | Stof -- If you want to report a vulnerability issue o

Re: [symfony-users] How to enable twig extensions included in symfony2 sandbox?

2011-02-02 Thread stof
nable this extension in the twig configuration: twig.config: extensions: [twig.extension.text] If you want to enable other twig extensions (debug for example) just add the service id in this array. Regards -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, pleas

Re: [symfony-users] Re: symfony2 : 3rd-party libraries

2011-02-01 Thread stof
oloader tries to load Application\MyBundle\Controller\GeSHI_Displayer because PHP tries to access this class. -- 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

Re: [symfony-users] [S2PR5] Class 'Locale' not found on form creation

2011-01-28 Thread stof
forms/overview.html#your-first-form > > I don't understand... What is wrong ? > > Thanks, > > Christophe The class Locale is an intl class. The dependency with intl is currently mandatory (but will become optionnal before the release) so check you have intl enabled.

Re: [symfony-users] Re: [sf2] Symfony2 generic routes - automaticaly resolved controller

2011-01-26 Thread stof
:54, Christophe COEVOET wrote: >> A bundle adds the possibility to use a generic route but it is >> absolutely not up-to-date with Symfony2 >> :https://github.com/hidenorigoto/DefaultRouteBundle >> Maybe it can help you if you update it. >> >> -- >> Christop

Re: [symfony-users] [Symfony2] acessing the container inside custom validators

2011-01-21 Thread stof
e him its dependencies. See http://docs.symfony-reloaded.org/master/guides/validator/constraints.html#constraint-validators-with-dependencies for the doc. Regards -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] [symfony2] User authentication and session persistence problem

2011-01-21 Thread stof
bjects or am > I just off the track here? > > Thank you in advance, > Jaakko R The login check has to be done by the main firewall as they don't share the context any more. Not sure if it is the issue here but it can be. As you also use anonymous users the simpliest configuration is

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread stof
t; > Happy to get some advice :) > > Thanks in advance, > Christian > > The namespace of the constraint class is false. So this constraint cannot be found and then call the associated validator (which will not be found in the current case as it is in a different namespace) Reg

Re: [symfony-users] Routing: different character between vars

2011-01-20 Thread stof
> This results in: > (1) /myroute/my-item/56 > (2) /myroute/my-item-56 How will you parse the second one ? my item-56 or my-item-56 ? I think the best solution would be to include the id in the slug and then search the item by slug (which is unique as it contains the id at the end) -- Chri

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread stof
ut the configuration. Your current configuration will store all the entities in each database. -- 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 &q

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread stof
h 2 different entity managers as this will break the entity management (the entity managers will use different UnitOfWork trying to manage the same entity which will break the consistency of your database). Thus you have to be sure to use the entity manager managing your entity. -- Christophe |

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread stof
ryClass="Application\HelloBundle\Repository > \Test") > * @orm:Table(name="test") > */ > class Test > { Did you register the HelloBundle in the orm configuration ? If not it is not taken into account by the entity manager. This is explained in the doc: http://do

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread stof
On Thu, 20 Jan 2011 04:09:24 -0800 (PST), Venzon wrote: > @stof: As you guys mentioned before; when I call entity repository > by: > $this->get('doctrine.orm.entity_manager')- >>getRepository('HelloBundle:Test') I retrieve default repository where > only

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread stof
es you the repository of a given entity. So the argument has to be the entity class name Regards. -- 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 Goog

Re: [symfony-users] SF2 custom get methods in entity repository class

2011-01-19 Thread stof
ository to be sure you get your custom repository instead of the default one. Regards -- 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 "s

Re: [symfony-users] [Symfony2] MongoDB Exception: "Every Document must have an identifier/primary key"

2011-01-18 Thread stof
ect as stated in the Symfony2 doc: http://docs.symfony-reloaded.org/master/guides/doctrine/mongodb-odm/index.html This is the difference with the Doctrine doc as the namespace is added by DoctrineMongoDBBundle to avoid conflicts with the validation annotations (same occurs for the ORM with the @orm: n

Re: [symfony-users] Relation one to one in sf1.4/propel

2011-01-17 Thread stof
says: > > > Call to undefined method BasesfGuardUser::getSfGuardUserProfile > > > sf 1.4/propel 1.4 > > Javier The correct method name is ``getProfile()`` as stated there: http://www.symfony-project.org/plugins/sfGuardPlugin -- Christophe | Stof -- If you

Re: [symfony-users] Enable logging in production

2011-01-17 Thread stof
to log warnings in the prod environment you have to change the ``level: err`` line in your config. I think it is ``level: warn`` for warnings but I'm not sure. Regards -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project