[symfony-users] Re: after authenttication get user data from session

2011-04-11 Thread kassel
Hi, at last founded find by token(). Thanks On 10 abr, 21:52, kassel wrote: > Hi > How i get the user data storaged into session, i've sow all user is in > session but how can get id for example?? > i've saw i can get it by : > $session->get("_security_main") > but it's serialized > thanks --

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

2011-04-11 Thread Chris
Sorry guys for the missleading terminology here, I wrote Entity but really meant Model. After a while of digging I ended up with a bunch of servie classes (like ericclemmons said), a few custom validation constraints and a custom repository. Thanks guys for helping me out! On Apr 5, 5:48 pm, eric

[symfony-users] Re: Is there (or wil there be) an official bundle repository?

2011-04-11 Thread dukeofgaming
Thanks for the clarification. Regards, David On Apr 9, 4:51 pm, Christophe COEVOET wrote: > Le 09/04/2011 00:42, dukeofgaming a crit :> Hi, > > > I've seenhttp://symfony2bundles.org/, but apparently there is no way > > to register there. I also saw that the website itself is an open > > source

[symfony-users] Re: Symfony2 and Netbeans

2011-04-11 Thread Stephan Petzl
I used Netbeans for a lot of other PHP projects already, and I have to say that I'm a bit worried about the missing autocompletion for *a lot of* stuff of Symfony2. That's mostly because of the dependency injection container as far as i see: when you write $this->get('doctrine.orm.entitymanage

RE: [symfony-users] Website written on RoR Passed to Symphony??

2011-04-11 Thread Magali Boisseau
Hi Justen, Thanks for your response. Actually, I don’t really have the choice. Three years ago, I really got interested into Ruby On Rails because as an Web entrepreneur, I tend to select the more effective and innovative tools for my company. The problem is that if you don’t program a web

Re: [symfony-users] Website written on RoR Passed to Symphony??

2011-04-11 Thread Gareth McCumskey
Sometimes redeveloping from scratch is a good idea, we have done it a few times. However when selecting which language or framework to use you need to bear in mind things like available skills (i.e. people around that can code in that language or framework). RoR, unfortunately, does not have as big

RE: [symfony-users] Website written on RoR Passed to Symphony??

2011-04-11 Thread Magali Boisseau
Yep it’s exactly what I am saying in my email and as I don’t get what I want from other people, then, I have decided to learn php5 and symfony myself…Cause I am really fed up with people who just want to take my money….and for the community, you will get one girl more! :-) (I have already started t

[symfony-users] Re: Symfony2 authentication with User Entity

2011-04-11 Thread smontes
My problem is not caused by the authentication but it is caused by redirection. In the log you can see the sql queries , the first query has a parameter null and the second one is the username that I passed. I don`t understand because the first paramenter is null. And then when the user is authen

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread seven seven
On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin

[symfony-users] One to one relation ship

2011-04-11 Thread kassel
Hi, I only wants to modify tthe orm .xml generated from Doctrine to make one-to-one relation ship, between to tables, i read that tuto but i can't resolve at all how it works. http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/working-with-indexed-associations.html Any help Thanks -- If

[symfony-users] Re: sfWidgetFormDoctrineChoice creates blank row when editing

2011-04-11 Thread Growiel
Bump please ! I can't believe nobody found this bug and it's really annoying :( On 24 mar, 11:09, Growiel wrote: > Hi. > > In every symfony 1.4 form I have, I have a problem when I use > sfWidgetFormDoctrineChoice. > > If i enable the "add_empty" option, I do have an empty choice at the > top of

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread Thomas Rabaix
The arguments signature has changed. You must add "null" as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: > On my side the problem is that I don't receive any error. I am getting an > empty admi

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread seven seven
You mean like this : arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin] ? I am in dev mode, ah I was referring that no fields are present, the Admin template is there on the page, like there is no entity attached On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix wrote: > The arguments

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread Thomas Rabaix
The tag name is not valid. And it is how you should declare the arguments : >>> arguments: [null, Tock\TockFlatPagesBundle\Entity\GroupPageEngine, >>> TockTockFlatPagesBundle:GroupPageEngineAdmin] On 11 avr. 2011, at 11:56, seven seven wrote: > You mean like this : > arguments: [null, TockTock

[symfony-users] Re: Symfony2 and Netbeans

2011-04-11 Thread Conrad
this is also a little workaround that works well if you use a service quite often, here the doctrine odm document manager /** * @return Doctrine\ODM\MongoDB\DocumentManager */ private function getDM() { return $this->get('doctrine.odm.mongodb.document_manager'); } If you use it in anoth

Re: [symfony-users] Website written on RoR Passed to Symphony??

2011-04-11 Thread Gediminas Morkevicius
I mostly like the part that we will get one more girl in the community :) Anyway, I personally think that if you have 3 year experience with RoR and your team does it also, compared to 1 year of PHP or so. It would be better to go with what you now best. But if you still sure you want to learn new

[symfony-users] Custom view helpers

2011-04-11 Thread coviex
Hi, How do I get my function available in all views just like url_for()? Regards, Kostia -- 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

Re: [symfony-users] Custom view helpers

2011-04-11 Thread Gareth McCumskey
Its on the symfony website: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_helpers On Mon, Apr 11, 2011 at 11:38 AM, coviex wrote: > Hi, > > How do I get my function available in all views just like url_for()? > > Regards, > Kostia > > -- > If you want to report

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread seven seven
Thanks ! That push me into a different area. I get an exception : RuntimeException: Please define a default `baseRouteName` value for the admin class `Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin and also an error : FileLoaderImportException: Cannot import resource "'C:\\xampp\\htdocs\\mc1\\

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

2011-04-11 Thread Christophe Beyer
Right, I had a tab at this line. Thanks ! Ok for the DQL functions, I don't want to upgrade my PR6, so I'll wait the first RC :) -- Christophe Beyer cbe...@cap-tic.fr Le 8 avr. 2011 à 18:21, Christophe COEVOET a écrit : > Le 08/04/2011 18:03, Christophe Beyer a écrit : >> >> Ok thanks,

[symfony-users] multiple Resources dir

2011-04-11 Thread shuogawa
hi Symfony2 bundles Resources dir is SomeBundle Resources config config.yml views layout.html.twig but i want set second dir For example home user SomeBundle

Re: [symfony-users] Website written on RoR Passed to Symphony??

2011-04-11 Thread Justen Doherty
i agree that investigating the available tools before you embark on your development is crucial, but as Gareth mentioned having the available expertise if your team jump ship (and they will) is also important, seeing as your application is already up and running - it is going to take alot more effo

[symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread smontes
hi, My user is always autenticated as anonymous, so the redirection does not work. security: encoders: Openxesta\UserBundle\Entity\Usuario: algorithm: md5 encode-as-base64: false iterations: 10 role_hierarchy: ROLE_ADMIN: ROLE_USE

Re: [symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread Christophe COEVOET
Le 11/04/2011 14:27, smontes a écrit : hi, My user is always autenticated as anonymous, so the redirection does not work. security: encoders: Openxesta\UserBundle\Entity\Usuario: algorithm: md5 encode-as-base64: false iterations: 10 rol

[symfony-users] Re: Understanding of Bundles in Symfony 2

2011-04-11 Thread weaverryan
Hey there- I'd say that both are fine. If you simply want to add comments to your articles, I'd just start with having them inside the same bundle. The advantage of having them in two bundles is more separation/ organization (and if your Blog bundle isn't too big, that's not a huge concern) and be

[symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread smontes
1º - I remove the anonymous entry and put this : firewalls: login: pattern: /demo/login security: false secured_area: pattern: /demo/.* form_login: check_path: /demo/login_check login_path: /de

Re: [symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread Christophe COEVOET
Le 11/04/2011 15:00, smontes a écrit : 1º - I remove the anonymous entry and put this : The good fix would have been to remove the "login" friewall, not the anonymous entry. firewalls: login: pattern: /demo/login The pattern should be ^/demo/login$ if you want to m

[symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread smontes
so , the solution would be : > >          login: +              pattern:  ^/demo/login$ > >              security: false > > >          secured_area: > >              pattern:  /demo/.* > >              form_login: > >                  check_path: /demo/login_check > >                  login_path:

Re: [symfony-users] Re: [Symfony2] Security ACL: SQLSTATE 23000 error (duplicated entry) while updating field ACEs

2011-04-11 Thread Gustavo Adrian
Yes, I thought about that. I've been avoiding that approach, but I think now it could help. That way I wouldn't need to delete and insert the ACE again. I could update it and that's it. It's a little bit more of work but I'll give it a try. I'll get back with comments about it. And I'll try to repr

Re: [symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread Christophe COEVOET
Le 11/04/2011 16:01, smontes a écrit : so , the solution would be : The simpliest solution would be removing the firewall named "login" and use only the firewall named "main" with "anonymous: true". (I really have the feeling that you did not read my whole message as it was still what I said t

Re: [symfony-users] Re: [Symfony2] Security ACL: SQLSTATE 23000 error (duplicated entry) while updating field ACEs

2011-04-11 Thread Gustavo Adrian
I just wanted to tell you guys, in case anyone is in the same situation, that I've implemented this approach. It's not that much work as I thought, and it works like a charm. I'm using now two ACEs for each object and SID, and two ACEs for each field of the object and SID. One ACE for ALLOW permiss

[symfony-users] Re: Redirect to especific route after login (_security_check)

2011-04-11 Thread smontes
I'm sorry, I had read the whole message but I did not understand you, my English is not good. I think now I understand everything. Thanks for everything and sorry again. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received th

[symfony-users] Re: [Symfony2] Own validation for FOS UserBundle won't work

2011-04-11 Thread Conrad
Now I found out that Annotation validation is working as expected.. But why doesn't the yml or xml file validation work?? One last idea came to my mind: I built my model also with annotations, so maybe the yml validation only works if there is a yml model too? But this doesn't make sense, only

Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10

2011-04-11 Thread seven seven
Ok I'm stuck :( I didn't figure out why it does not find my entity . It only have my Entity classes manually written including my getters and setters , without running the doctrine:generate:entities command. I am asking if is there absolutely necessary of having XML or YML mapping of my entities i

[symfony-users] Displaying user photos in the sfDoctrinGuardPlugin User List table

2011-04-11 Thread SteveonThomas
Hey All, I've recently added user photo to the sf_guard_user table and am able to upload and display the photo when i select the user for modification. What i would like to know is how to display the photo in the user list tablei've added it to the generator.yml file but it only displays the p

[symfony-users] Problems with FOS UserBundle

2011-04-11 Thread Dark
I have installed UserBundle, but when I try open app_dev.php there i see Fatal error: Interface 'Symfony\Component\Config\Definition \ConfigurationInterface' not found in C:\dotabash.ru\symfony\vendor \bundles\FOS\UserBundle\DependencyInjection\Configuration.php on line 18

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

2011-04-11 Thread Wil Moore III
> > create a "PageService" for fetching/saving your domain models and leave > Doctrine for the persistence of data. agreed. -- 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] Re: Understanding of Bundles in Symfony 2

2011-04-11 Thread Gregor
Hey weaverryan, thanks for you answer! Your description of organizing the source code opens my mind for the bundle system. The idea of decoupling the comments from the article and use them for other projects is really great. But as you mentioned my Blog project wouldn't be to big because it's o

[symfony-users] Re: Understanding of Bundles in Symfony 2

2011-04-11 Thread Hernan Slavich
I have this doubt too. Is there a way to organize controllers in sub folders? Example: /src /Blog /BlogBundle /Controllers /Front ExampleController.php /Back AdminController.php On Apr 11, 9:52 am, weaverryan wrote: >

Re: [symfony-users] Displaying user photos in the sfDoctrinGuardPlugin User List table

2011-04-11 Thread Francesco Levorato
Hi Steveon, I assume you are using the admin generator for your backend application. You should create a partial, prefixing your field name with an underscore; now you will be able write custom code (in your case a call to image_tag with the image path). Read http://www.symfony-project.org/jobeet/

Re: [symfony-users] Problems with FOS UserBundle

2011-04-11 Thread Christophe COEVOET
Le 11/04/2011 21:19, Dark a écrit : I have installed UserBundle, but when I try open app_dev.php there i see Fatal error: Interface 'Symfony\Component\Config\Definition \ConfigurationInterface' not found in C:\dotabash.ru\symfony\vendor \bundles\FOS\UserBundle\DependencyInjection\Configuration

Re: [symfony-users] Re: Understanding of Bundles in Symfony 2

2011-04-11 Thread Christophe COEVOET
Le 11/04/2011 20:03, Hernan Slavich a écrit : I have this doubt too. Is there a way to organize controllers in sub folders? Example: /src /Blog /BlogBundle /Controllers /Front ExampleController.php /Back AdminC

[symfony-users] Re: Forms escaping quotes on input

2011-04-11 Thread Richtermeister
Could this be related to the php setting "magic quotes"? Daniel On Apr 10, 11:47 am, Simon Cast wrote: > I recently upgraded to 1.4.12 and this has produced the odd error > where form input is escaping quotes on entry to the system. By this I > mean I echoed the clean & bound form and the text f

[symfony-users] issue while uploading image in symfony 1.4

2011-04-11 Thread Laxmi
I was trying to up load image hear is the code which i wrote in lib/form class $this->validatorSchema['picture'] = new sfValidatorFile(array( 'required' => true, 'path' => sfConfig::get('sf_upload_dir').'/images')); in action file $files = $request->getFiles('user'); $req = $req