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

2011-04-06 Thread symfonyMan
Hello Oscar, yes, that fix my problem thanks On 6 avr, 01:35, oscar balladares liebegr...@gmail.com wrote: 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: {{

[symfony-users] [Symfony2] in the wild

2011-04-06 Thread Richard D Shank
I just wanted to give everyone a heads up about a Symfony2 site that is in production, http://athletepath.com You can see some of the features of the site at http://athletepath.com/obra The has actually been live since December, but we just launched a few new features and it moved into

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

2011-04-06 Thread Johannes Schmitt
Your idea is sound except for the behavior of the PermissionGrantingStrategy. If you take a closer look, you'll see that the first applicable ACE will make the ultimate decision for the permission bitmask. Only if you check for more than one mask, the loop will continue. Also see the documentation

[symfony-users] Facebook Cookie creation not working

2011-04-06 Thread Paulo Marinho
Hi, I'm trying to make na app integrated to Facebook not using any existing plugin, only with the facebook php sdk, since I made several FB apps without symfony. The authentication window opens, work allright, but, when sending the form back to my app, the facebook cookies (fbs_appid) is never

[symfony-users] [Security bundle] How to do something after user is authorized

2011-04-06 Thread Azat
How can I update some field in DB (i.e. Last time of login) ? -- 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

[symfony-users] ajax in symfony [error:javascript.php not found]

2011-04-06 Thread Jehan
Dear all I want to use ajax functionality but getting error that JavascriptHelper.php not found. Following is template code and error. please write me getting following error. * ?php* use_helper('Javascript') *? * div id=*item_list*/div * ?php* *echo *form_remote_tag(*array*( 'update' =

[symfony-users] Errors in Creating pages in Symfony 2 chapter of the book

2011-04-06 Thread Mike Angstadt
Hi all, I found some errors in the Creating pages in Symfony 2 chapter of the documentation (http://symfony.com/doc/2.0/book/ page_creation.html). The ticket I created hasn't seemed to have gotten any attention, so someone on the forum suggested I post to the users mailing list.

[symfony-users] Re: Custom list actions with Admin generator

2011-04-06 Thread Viktoras
Ok, I've found the solution. The difference between Jobeet example and my code was the primary key name. In Jobeet it's id, in my project it's tablename_id. Doctrine understands, that id is a primary key and thus numeric, but it doesn't recognize tablename_id as a key. So, my url was matched with

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

2011-04-06 Thread Antonio Antunes
Hello! Clearing the cache didn't worked, unfortunately. Removing your Bundle from the references, didn't too. I'm using Symfony2 2.0.0PR9, which I have downloaded from official site on the day I've opened this thread. If anyone wants to take a look, I have saved a copy of all directory

Re: [symfony-users] ajax in symfony [error:javascript.php not found]

2011-04-06 Thread Yohan GIARELLI
Which version of symfony do you use ? This javascripts helpers are old symfony stuf, from 1.0, they are not in 1.4 2011/4/6 Jehan jeeha...@gmail.com Dear all I want to use ajax functionality but getting error that JavascriptHelper.php not found. Following is template code and error.

Re: [symfony-users] ajax in symfony [error:javascript.php not found]

2011-04-06 Thread Yohan GIARELLI
After checking the repo, the javascripts ajax helpers was removed in 1.2 (because of their prototype dependencies) 2011/4/6 Yohan GIARELLI yo...@giarelli.org Which version of symfony do you use ? This javascripts helpers are old symfony stuf, from 1.0, they are not in 1.4 2011/4/6 Jehan

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

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 01:26, Antonio Antunes a écrit : Hello! Clearing the cache didn't worked, unfortunately. Removing your Bundle from the references, didn't too. I'm using Symfony2 2.0.0PR9, which I have downloaded from official site on the day I've opened this thread. If anyone wants to take a

[symfony-users] [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Hi, I've just started to code with sf PR10 and I have this problem when i try to create the stub methods for my entities Bundle {name of bundle} does not contain any mapped entities. I've been following the documentation very closely. However, I'm still unable to find out where is the problem?

[symfony-users] problem loading doctrine nested set from fixture

2011-04-06 Thread saulius okunevičius
Hello, I have a nested set structure, which I am loading from fixture (I'm using Doctrine). The problem is, root level siblings get assigned the same lft value which makes sorting the whole nested set to correctly display it impossible. My schema: NestedSet: actAs: [NestedSet] tableName:

Re: [symfony-users] [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 15:01, Joni a écrit : Hi, I've just started to code with sf PR10 and I have this problem when i try to create the stub methods for my entities Bundle {name of bundle} does not contain any mapped entities. I've been following the documentation very closely. However, I'm still

[symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Here is my config.yml file orm: auto_generate_proxy_classes: %kernel.debug% default_entity_manager: default entity_managers: default: mappings: {name of bundle}: ~ is there something wrong with the mapping? On Apr 6,

Re: [symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 15:20, Joni a écrit : Here is my config.yml file orm: auto_generate_proxy_classes: %kernel.debug% default_entity_manager: default entity_managers: default: mappings: {name of bundle}: ~ is there

[symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Which entities are you referring to? I'm kinda confused. is it the .dcm.yml files? Or the mapping insidie the Entity.php class file ? On Apr 6, 9:24 pm, Christophe COEVOET s...@notk.org wrote: Le 06/04/2011 15:20, Joni a �crit : Here is my config.yml file      orm:          

Re: [symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 15:26, Joni a écrit : Which entities are you referring to? I'm kinda confused. is it the .dcm.yml files? Or the mapping insidie the Entity.php class file ? An entity is a PHP class which is meant to be persisted by Doctrine. And the mapping of the entity can be in different

[symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Thanks for the quick reply and explaining it to me! I used the YAML format and according to the documentation, I generated the yaml format to the src/{namespace}/{name of bundle}/Resources/ config/doctrine/metadata/orm my 'User.dcm.yml look like this User: type: entity table: user fields:

Re: [symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 15:34, Joni a écrit : Thanks for the quick reply and explaining it to me! I used the YAML format and according to the documentation, I generated the yaml format to the src/{namespace}/{name of bundle}/Resources/ config/doctrine/metadata/orm my 'User.dcm.yml look like this The

[symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Actually, I tried doing that as well. But doing that mapping will give me another error. [Doctrine\ORM\Mapping\MappingException] Class is not a valid entity or mapped super class. What should I do for this error? On Apr 6, 9:48 pm, Christophe COEVOET s...@notk.org wrote: Le 06/04/2011 15:34,

Re: [symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Christophe COEVOET
Le 06/04/2011 15:50, Joni a écrit : Actually, I tried doing that as well. But doing that mapping will give me another error. [Doctrine\ORM\Mapping\MappingException] Class is not a valid entity or mapped super class. What should I do for this error? This means that Doctrine found your mapping

[symfony-users] Re: [Symfony 2 PR10] Bundle {name of bundle} does not contain any mapped entities.

2011-04-06 Thread Joni
Ah, Very Cool... Thank you very much for the help! Everything is solved now! Thank you very much!!! On Apr 6, 9:54 pm, Christophe COEVOET s...@notk.org wrote: Le 06/04/2011 15:50, Joni a crit : Actually, I tried doing that as well. But doing that mapping will give me another error.

[symfony-users] Re: How to do something after user is authorized

2011-04-06 Thread Javier Garcia
Could you give more details, please? On Apr 6, 1:33 pm, Azat a3at.m...@gmail.com wrote: How can I update some field in DB (i.e. Last time of login) ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] EntityChoiceField - Entities passed to the choice field must be managed

2011-04-06 Thread chjacobsen
I have a simple form for editing users and, amongst other things, assigning them roles. It works well for authentication when i manually add the right lines to the database, and authentication works flawlessly. However, the following code breaks down: $form-add(new

[symfony-users] Re: [PR10] String does not exist

2011-04-06 Thread Damon Jones
From the trace, the error is occurring when trying to hydrate your User document and it would seem that the problem is with your mapping. Do you by any chance have String instead of string for your field type? From the documentation: /** @Field(type=string) */ Hope this helps. On Apr 6, 12:03 

Re: [symfony-users] Errors in Creating pages in Symfony 2 chapter of the book

2011-04-06 Thread oscar balladares
Hi. May be they won't pay attention to the ticket as documentation is always changing. Posting it here is the best way. Regards! 2011/4/5 Mike Angstadt mike.angst...@gmail.com Hi all, I found some errors in the Creating pages in Symfony 2 chapter of the documentation

[symfony-users] Re: String does not exist

2011-04-06 Thread Damon Jones
Have you really got a root-namespaced class called String, or are you trying to type-hint on a string type? According to the PHP manual: Type Hints can only be of the object and array (since PHP 5.1) type. Traditional type hinting with int and string isn't supported. On Apr 6, 12:54 pm, Conrad

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

2011-04-06 Thread pzwosta
Sorry what I wanted to say is that the user token doesn't exist while _security_profile does. GlobalVariables.php: public function getUser() { if (!$security = $this-getSecurity()) { return; } if (!$token = $security-getToken()) { return;

[symfony-users] ajax chellanging question

2011-04-06 Thread Jehan
Dear All I am using symfony 1.4. I want to show data in table format, with each record show a hyperlink. when click on link then that specific record edited using ajax. How to do it. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

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

2011-04-06 Thread pzwosta
Additional info: Without main firewall I don't get a token at all.If I add the main firewall I get anon. as user but not the username of the real user from the login page. What I want is a main page that is freely available but with a login/logout button for further services. When the user is

Re: [symfony-users] Re: Overriding Bundle Templates doesn't work

2011-04-06 Thread Jonotron
This appears to still be broken in PR10. I can't override FOSUserBundle templates. -- 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