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

2011-03-28 Thread Carlos Sánchez
From http://symfony.com/doc/2.0/book/security/authentication.html After a successful authentication, the user is redirected based on the following algorithm: * if always_use_default_target_path is true (false by default), redirect the user to the default_target_path (/ by default); * if

[symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-28 Thread Carlos Sánchez
That doesn't make too much sense to me, although, it might work!! public function load($em) -- $em { $user1 = new User(); $user1-setName('Cesar Hernandez'); $dm = $this-get('doctrine.odm.mongodb.document_manager'); -- $dm $dm-persist($user); from your command

[symfony-users] Pagination using routing

2011-03-28 Thread Srivatsa Prasad
Hi All, In my routing i have used setting_master: url: /setting/master class: sfPropelRoute options: { model: master, type: list } param: { module: setting, action: index } requirements: { sf_method: get } and in my action i am using public function executeIndex(sfWebRequest

[symfony-users] [Symfony2] PR8: Custom roles for access control

2011-03-28 Thread georg
Hi, I'm having an issue with the security component. In the docs it says that when using a custom Role object you should not use the ROLE_ prefix for the name of your roles. But if I omit the prefix and call my role ADMIN instead of ROLE_ADMIN then an AccessDenied exception is thrown on every

Re: [symfony-users] [Symfony2] PR8: Custom roles for access control

2011-03-28 Thread Christophe COEVOET
Le 28/03/2011 12:52, georg a écrit : Hi, I'm having an issue with the security component. In the docs it says that when using a custom Role object you should not use the ROLE_ prefix for the name of your roles. But if I omit the prefix and call my role ADMIN instead of ROLE_ADMIN then an

[symfony-users] Caching a renderText() Action? (sf1.4)

2011-03-28 Thread Matt Gibson
Quick caching question! I have an action that returns some JSON like this: return $this-renderText(json_encode($results)); I've tried enabling caching for this action as I have done, successfully, with other actions (using cache.yml at the module level), but it doesn't seem to be cached.

[symfony-users] Would be a simple admin - relational databases

2011-03-28 Thread PM
Hi, I'm new at symfony and im trying to do an admin that, besides the creation/edition/deletion of data for the main table (person), would input the data fro the relational data (pictures, videos, etc), alway one to many. I'm breaking my head with it and I still cant see a solution to

[symfony-users] Re: Symfony2 Doctrine2 cheat sheets Released

2011-03-28 Thread Carl
Wow, this is fantastic! Outstanding work! :D -- 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] Re: Symfony2 slow on windows (xp)

2011-03-28 Thread Stanley
Thank you for the suggestion. I installed gedit but couldn't find the plugin for debugging. Can you advise the plugin name? On Mar 25, 3:53 am, oscar balladares liebegr...@gmail.com wrote: Gedit out of the box is as good as notepad++. Gedit + plugins is way better than notepad++. Of course,

[symfony-users] Re: Upgrade from sf 1.3 to sf 1.4: Fatal error: Class 'sfMessageSource' not found

2011-03-28 Thread Carl
Have you verified that sfMessageSource.class.php exists in your install? It should be located in lib/vendor/symfony/lib/i18n/. This is an abstract class that all of the other sfMessageSource_* classes inherit from either directly or indirectly. So if that's missing it would generate an error

[symfony-users] Symfony users Group

2011-03-28 Thread Alfonso Martínez Arias
Congrats, for a excelent work. I would like to form a part of this group. Thank you. -- 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

[symfony-users] Re: Overriding Error Templates

2011-03-28 Thread Carl
Thanks for this! I've been trying to get this to work for a while now and I kept getting the default error page. Unfortunately, the app/Resources/FrameworkBundle/views/Exception/ error.html.twig location doesn't seem to work for me either. Nor does app/views/FrameworkBundle/Exception/

Re: [symfony-users] Symfony2 Doctrine2 cheat sheets Released

2011-03-28 Thread Sam Stelfox
Nice. This will be a big help ^_^ Thanks On Thu, Mar 24, 2011 at 11:28 AM, Tristan tristan.bessou...@gmail.comwrote: Hello, We've just released amazing stylesheets for Symfony2 and Doctrine2. Don't hesitate to tell us what you think.

[symfony-users] [Symfony2] Problemas con app.php PR8

2011-03-28 Thread Moises Gallego
Tengo un problema con el entorno de producción, a ver si a alguien se le ocurre algo. Resulta que si ejecuto app_dev.php funciona correctamente, pero cuando ejecuto app.php me da el siguiente error Oops! An Error Occurred The server returned a 500 Internal Server Error. Something is broken.

[symfony-users] Creating a bundle in SF2 PR8 with the console. Problem

2011-03-28 Thread Moises Gallego
Hi all, I'm with symfony PR8 and appear me the following problem: I am creating a bundle with php app / console init:Bundle Name \NameBundle src as the documentation says This command create the bundle, but with the old configuration, that is, files of routing and without the possibility of

[symfony-users] Re: Overriding Error Templates

2011-03-28 Thread Carl
Thanks for this! I've been having trouble with this very problem for days and figured it was a bug. I've tried placing the template in both locations mentioned and neither of them seem to do the trick. I've made certain to clear my app/cache directory too. I'm using PR8 at the moment. (My

[symfony-users] Memory leaks in symfony2 + doctrine2

2011-03-28 Thread Nebula
So, I tried to play this sample http://www.doctrine-project.org/blog/doctrine2-batch-processing class HelloWorldCommand extends DoctrineCommand { protected function configure() { $this -setName('hello:world') -setDescription('hello world')

[symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread Juergen Kober
Greetings, I'm having some trouble with doctrine:generate:entities in Symfony2.0/PR7 (same in PR8). Every time I run doctrine:generate:entities (type: annotation) an additional entity is created in /Entity. For /Entity/User.php I get an additional /Entity/~User.php. The problem is: ~User.php

[symfony-users] Re: [Symfony2]Multiple routes in annotations

2011-03-28 Thread Mark C
Awesome thanks Fabien, just saw that on github. On Mar 26, 5:52 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 3/26/11 5:55 PM, georg wrote: Hi, has this been solved or has a solution been found? I'm also very interested in achieving the same thing as Mark. /**  

[symfony-users] problem with symfony 1.4.10 and i18n widgets

2011-03-28 Thread GaB
Hi, I'm having problem with i18n records being saved into the db. I have this schema: Post: connection: doctrine tableName: post actAs: i18n: fields: [title, content] columns: id: type: integer(1) primary: true autoincrement: true . . . title:

[symfony-users] Error with ahDoctrineEasyEmbeddedRelationsPlugin in edition with new form

2011-03-28 Thread Paulo Marinho
Hi, I'm using ahDoctrineEasyEmbeddedRelationsPlugin for an admin form with the code that follow. In the creation of a company (empresa), the relation many to many is saved ok, nut in th edition, the blank form always is validated, or tries to input in the tababase null values,

Re: [symfony-users] Symfony2 Doctrine2 cheat sheets Released

2011-03-28 Thread Jeremiah Dodds
On Thu, Mar 24, 2011 at 11:28 AM, Tristan tristan.bessou...@gmail.comwrote: Hello, We've just released amazing stylesheets for Symfony2 and Doctrine2. Don't hesitate to tell us what you think. http://www.elao.org/symfony-2/doctrine-2/symfony-2-doctrine-2-cheat-sheets.html I've been

[symfony-users] Newcomer: start symfony1 or Symfony2?

2011-03-28 Thread Várgedő Lajos
Hello! I have no prior knowledge about symfony1 or 2. Now I am using CakePHP. I decided to start learning symfony starting next week, and use it in production in about 2-3 months. As I saw, there is already a PR8 of Symfony2. What do you suggest, shall I start learning Symfony2 directly,

[symfony-users] [symfony2] MediaBundle installation

2011-03-28 Thread seven seven
Hello everyone, I must say that this might be a stupid question, but I am stuck with installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin as command line console. According to the documentation on installation I must run this command *php kooqit/console

[symfony-users] Error with ahDoctrineEasyEmbeddedRelationsPlugin in edition with new form

2011-03-28 Thread PM
Hi, I’m using ahDoctrineEasyEmbeddedRelationsPlugin for an admin form with the code that follow. In the creation of a company (empresa), the relation many to many is saved ok, nut in th edition, the blank form always is validated, or tries to input in the tababase null values, anyone

[symfony-users] CrystalReports

2011-03-28 Thread Mariah
Hi, Please I would like to know if there is any way to use symfony 1.4.9 with CrystalRepots,thanks in advance -- 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: Overriding Error Templates

2011-03-28 Thread Carl
That did the trick. Huge thanks! :D And duly noted about the correct path going forward after PR8. -- 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

[symfony-users] [symfony2] Integración PHPUnit + IDE

2011-03-28 Thread Moises Gallego
Hola a todos, He estoy intentando integrar PHPUnit 3.5 con algún IDE pero no soy capaz por mucha información que busco. Cuando ejecuto el PHPUnit directamente me funciona con phpunit -c app/ por lo cual dudo que se deba a un error de PHPUnit o versión Si alguien conoce de algún sitio donde

[symfony-users] Re: Upgrade from sf 1.3 to sf 1.4: Fatal error: Class 'sfMessageSource' not found

2011-03-28 Thread Carl
Very odd indeed. Whatever it was, I'm glad the problem vanished on its own. :) -- 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

Re: [symfony-users] [Symfony2] Injecting routes with parameters into javascript

2011-03-28 Thread Insight Media Tech
why don't you pass to the route an id of 0(assuming the id is an index/incremental value), and from the generated route e.g. /user/0 replace the last part in javascript. you would need only some kind of checking in the action for the zero id. hope it somehow helps. 2011/3/27 Dennis

[symfony-users] Re: Symfony2 slow on windows (xp)

2011-03-28 Thread Stanley
Thank you for suggestion. I have just installed gedit, but I couldn't find the plugin for step by step debugging. You have the link to the plugin? On Mar 24, 9:45 pm, Alex Pilon alex.pi...@gmail.com wrote: I dont know the answer to your question, but on linux you can get a ton of plugins for

[symfony-users] Editing existed date with sfWidgetFormSelectDoubleList

2011-03-28 Thread Chris
In English. --- Dear all, I try to use sfWidgetFormSelectDoubleList in order to save/edit some data. My model : A group of permission contains some permissions and a permission is associated to many group of permission (Relation Many-to-Many)

[symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread mindeleven
Greetings, I'm having some trouble with doctrine:generate:entities in Symfony2.0/ PR7 (same in PR8). Every time I run doctrine:generate:entities (type: annotation) an additional entity is created in /Entity. For /Entity/User.php I get an additional /Entity/~User.php. The problem is: ~User.php

[symfony-users] Re: Overriding Error Templates

2011-03-28 Thread Carl
I've experienced the same problem. It simply refuses to use template in the app/views/FrameworkBundle/Exception directory. I've done all of the things you've done as well and the problem persists. My guess is that this is a bug, they've changed the location that Symfony2 is looking for the

Re: [symfony-users] Re: Symfony2 slow on windows (xp)

2011-03-28 Thread Alex Pilon
Check this link out: http://tinyurl.com/68fnrgt On Fri, Mar 25, 2011 at 09:16, Stanley stanley.darm...@gmail.com wrote: Thank you for suggestion. I have just installed gedit, but I couldn't find the plugin for step by step debugging. You have the link to the plugin? On Mar 24, 9:45 pm,

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread Dennis Jacobfeuerborn
Doesn't work either. I doubt that the type of authentication plays a role here the question is why this authentication token is not set as it is apparently required for is_granted() to work. Regards, Dennis -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] [Symfony2] Injecting routes with parameters into javascript

2011-03-28 Thread Dennis Jacobfeuerborn
Again this would be hacking around the issue rather than solving it. I've already removed the requirement so I can use Jordi's approach for the time being but that's not really a solution either. -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] [Symfony2] Injecting routes with parameters into javascript

2011-03-28 Thread Johannes Schmitt
I had written a JS route implementation for symfony 1.4 which should work with minor modifications for Symfony2. If it helps someone, the code is here (and it's actually unit-tested :)): https://gist.github.com/3d39cf593ceb1ea63713 See the tests for how to use it. Kind regards, Johannes On

Re: [symfony-users] [symfony2] MediaBundle installation

2011-03-28 Thread Thomas Rabaix
On 27 mars 2011, at 11:12, seven seven wrote: Hello everyone, I must say that this might be a stupid question, but I am stuck with installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin as command line console. According to the documentation on installation I must run

[symfony-users] Re: Newcomer: start symfony1 or Symfony2?

2011-03-28 Thread violyn
i would go with symfony2 for sure -- 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] How to execute a query in symfony1.4

2011-03-28 Thread sunny4sfony
Hi, I have a simple query like select name,owner from tests where id in (1,2,3) . Please let me know how to execute this in my action class. I have gone through the symfony1.4 documentation but couldn't find answer. Please help. Thanks, Sunil. -- If you want to report a vulnerability issue on

Re: [symfony-users] [Symfony2] Injecting routes with parameters into javascript

2011-03-28 Thread Don Pinkster
Most of the time you want to submit an element to an page, maybe a value in a li, an ID of a div or something else. What I do is generate the url for each element and put in into a data-url attribute so I can just access that. May be some overhead to generate urls for all the items but I don't

[symfony-users] Integrating Symfony2 with an existing project

2011-03-28 Thread Pepijn
I have an existing PHP project that uses Doctrine 2.0, and I want to write a small web application to manage the entities in this existing project. However releases mostly assume they'll be the bases for a new project. Thus, here is my question: If I have an existing project, already using

[symfony-users] probleme with function __tostring() undefined function

2011-03-28 Thread mohamed sabri ben sassi
hi guys ,, i nedd help with this probleme i'am making now a new form ,,i create a new class named loginform in the directory lib/form ,,i create a loginSuccess and i create a new methode in file action named executelogin ,,,so here is the problem,,, when i open my page an error occured Fatal

Re: [symfony-users] Integrating Symfony2 with an existing project

2011-03-28 Thread Michał Piotrowski
Hi, 2011/3/28 Pepijn pepijn.ko...@gmail.com: I have an existing PHP project that uses Doctrine 2.0, and I want to write a small web application to manage the entities in this existing project. However releases mostly assume they'll be the bases for a new project. Thus, here is my question:

[symfony-users] Re: Filter before routing, and sfStopExceptions

2011-03-28 Thread mavinman
Anyone at all? On Mar 10, 9:34 am, mavinman jnan...@gmail.com wrote: Anyone? On Mar 7, 2:50 pm,mavinmanjnan...@gmail.com wrote: I would like to create a filter that runs before the routing system does and am wondering if this is possible. Specifically, I would like to parse and

[symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread seven seven
Hello, I am currently setting up my production server in order to support sf2 framework. My question is regarding the PHP accelerators, I have already installed *eaccelerator *(http://eaccelerator.net/) on my server but I still get the *Install and enable a PHP accelerator like APC (highly

Re: [symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread Jordi Boggiano
On 28.03.2011 16:56, seven seven wrote: Hello, I am currently setting up my production server in order to support sf2 framework. My question is regarding the PHP accelerators, I have already installed *eaccelerator *(http://eaccelerator.net/) on my server but I still get the /Install and

[symfony-users] Re: Creating a bundle in SF2 PR8 with the console. Problem

2011-03-28 Thread weaverryan
Hey Moises- Yes, you're right that the task currently creates a routing.yml file. The issue is that the annotation routing is a feature only available if you're using the FrameworkExtraBundle (it's not *actually* a core feature). If you have that bundle installed and configured, then you'd be

[symfony-users] Re: Pagination using routing

2011-03-28 Thread weaverryan
Hi Srivatsa- You cannot setup pagination using this method. You need to setup the pagination as you normally would - you can't make use of the sfPropelRoute functionality with the pager as far as I know. Thanks! On Mar 28, 4:04 am, Srivatsa Prasad srivatsa6...@gmail.com wrote: Hi All, In my

Re: [symfony-users] Re: Overriding Error Templates

2011-03-28 Thread Christophe COEVOET
Le 25/03/2011 14:30, Carl a écrit : I've experienced the same problem. It simply refuses to use template in the app/views/FrameworkBundle/Exception directory. I've done all of the things you've done as well and the problem persists. My guess is that this is a bug, they've changed the location

Re: [symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread Christophe COEVOET
Le 28/03/2011 17:04, Jordi Boggiano a écrit : On 28.03.2011 16:56, seven seven wrote: Hello, I am currently setting up my production server in order to support sf2 framework. My question is regarding the PHP accelerators, I have already installed *eaccelerator *(http://eaccelerator.net/) on my

AW: [symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread Juergen Kober
Hi, I¹ve started using symfony 2 with eaccelerator and ran in some very time consuming trouble with Doctrine 2 using annotations. You¹ll find more info at: http://wildlyinaccurate.com/eaccelerator-and-doctrine-2/ So eaccelerator didn¹t work out for me ­ I deinstalled eaccelerator and installed

Re: [symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread seven seven
Thanks ! Good to know ! I will check everything and install APC if still not working ... On Mon, Mar 28, 2011 at 6:04 PM, Jordi Boggiano j.boggi...@seld.be wrote: On 28.03.2011 16:56, seven seven wrote: Hello, I am currently setting up my production server in order to support sf2

Re: [symfony-users] probleme with function __tostring() undefined function

2011-03-28 Thread mohamed sabri ben sassi
please i need help please help me iam really stack 2011/3/28 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com hi guys ,, i nedd help with this probleme i'am making now a new form ,,i create a new class named loginform in the directory lib/form ,,i create a loginSuccess and i create a

[symfony-users] Re: probleme with function __tostring() undefined function

2011-03-28 Thread Sebastian Göttschkes
Hi there, On Monday, March 28, 2011 4:25:26 PM UTC+2, mohamed sabri ben sassi wrote: i'am making now a new form ,,i create a new class named loginform in the directory lib/form Are you extending any class. I'm not quite sure which form has to be extended! Oh, and please have a loog at

Re: [symfony-users] How to execute a query in symfony1.4

2011-03-28 Thread Alex Potter
On Monday 28 Mar 2011 14:15:37 sunny4sfony wrote: I have a simple query like select name,owner from tests where id in (1,2,3) . Please let me know how to execute this in my action class. I have gone through the symfony1.4 documentation but couldn't find answer.

Re: [symfony-users] Symfony users Group

2011-03-28 Thread oscar balladares
Welcome [?] 2011/3/25 Alfonso Martínez Arias fonsyma.poke...@gmail.com Congrats, for a excelent work. I would like to form a part of this group. Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

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

2011-03-28 Thread oscar balladares
Hi Carlos, thanks for answering. I read that docs before asking here, indeed. [?] I already solve my problem. What I did to work around this issue was to set a default_target_path to a route named /loginredirect that route calls to a controller named similar loginRedirectAction() There I create

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Maybe you haven't set your security.yml properly? Here is mine, hope this help: security: encoders: Comercio\PulperiaBundle\Entity\Cliente: algorithm: sha512 encode-as-base64: true iterations: 10 providers: main: entity: {

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread Christophe COEVOET
Le 28/03/2011 15:12, Dennis Jacobfeuerborn a écrit : Doesn't work either. I doubt that the type of authentication plays a role here the question is why this authentication token is not set as it is apparently required for is_granted() to work. Regards, Dennis You cannot use is_granted when

[symfony-users] Re: EntityChoiceField - Is it going away?

2011-03-28 Thread Roger Webb
It's gone of the api.symfony-reloaded.org/master documentation. I see it here now: http://api.symfony.com/2.0/Symfony/Component/Form/EntityChoiceField.html I take it the symfony-reloaded one is no longer being maintained. It might be a good idea to take that site down if that's the case.

[symfony-users] Re: probleme with function __tostring() undefined function

2011-03-28 Thread mohamed sabri ben sassi
no the problem is not with user wright now ,,the problem that he is not making my form 2011/3/28 Sebastian Göttschkes sebastian.goettsch...@googlemail.com Hi there, On Monday, March 28, 2011 4:25:26 PM UTC+2, mohamed sabri ben sassi wrote: i'am making now a new form ,,i create a new class

[symfony-users] How to retrieve related objects with ACL

2011-03-28 Thread badllama77
Ok so if you hand fine object permissions over the ACL (which is quite well done). I understand the process by which one can add permissions, check permissions. How does one retrieve the user's objects (i.e. get all the users comments)? Another example would be in a sales environment where

Re: [symfony-users] Re: Newcomer: start symfony1 or Symfony2?

2011-03-28 Thread oscar balladares
+1 Symfony2. If you start studying hard, you could easily get the necessary knowledge in 1 month. I suggest 3 hours a day at least. To help you out deciding, I must remark some point: S1 has some good features like generating forms, and CRUD files and directories in one command (you have to

Re: [symfony-users] Re: EntityChoiceField - Is it going away?

2011-03-28 Thread Fabien Potencier
On 3/28/11 10:36 PM, Roger Webb wrote: It's gone of the api.symfony-reloaded.org/master documentation. I see it here now: http://api.symfony.com/2.0/Symfony/Component/Form/EntityChoiceField.html I take it the symfony-reloaded one is no longer being maintained. It might be a good idea to

Re: [symfony-users] [symfony2] MediaBundle installation

2011-03-28 Thread oscar balladares
+1 Thomas' answer 2011/3/28 Thomas Rabaix thomas.rab...@gmail.com On 27 mars 2011, at 11:12, seven seven wrote: Hello everyone, I must say that this might be a stupid question, but I am stuck with installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin as

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
I have the same issue. In the old days (S1) you had to extend the base entity class, so when regenerating/updating your schema, your custom code remained intact. Now, if you regenerate the entity, it will append the new code to the end of the file. I hate it, but it is ok for me now. 2011/3/28

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
About your issue, that is a unix behaviour, the ~user.php file is a backup file. I get those ~*.* files whenever I delete a file. 2011/3/28 oscar balladares liebegr...@gmail.com I have the same issue. In the old days (S1) you had to extend the base entity class, so when

Re: [symfony-users] Would be a simple admin - relational databases

2011-03-28 Thread oscar balladares
I didn't get you [?] Do you need the schema for that database requirements? or do you need the code to do it so in the admin application? 2011/3/25 PM tommymo...@gmail.com Hi, I'm new at symfony and im trying to do an admin that, besides the creation/edition/deletion of data for the main

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread Dennis Jacobfeuerborn
That's what I suspect but the question is how I got out of the scope of a firewall? security: encoders: Symfony\Component\Security\Core\User\User: algorithm: sha1 encode-as-base64: false iterations: 1 role_hierarchy: ROLE_ADMIN:

Re: [symfony-users] Php notice in abstactToken.php

2011-03-28 Thread oscar balladares
Notice are not errror, nor Warnings The severity level is very low, it is not even something that would break your project. Just check that you have uncoment the notice display commented in your php.ini If errors and warining and notices are not configured to be displayed in your php.ini then

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Is it maybe due to ACL heriarchy ? I suggest you to try to inverse the ACL like: access_control: - { path: /.*, roles: ROLE_USER } - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } What I notice is that /*. match /login so they collide. 2011/3/28 Dennis Jacobfeuerborn

[symfony-users] [symfony2] link_for() /put/delete on twig views??

2011-03-28 Thread oscar balladares
Hi everyone. [?] I would like to implement something like the url_for() helper of S1 on S2. I've been reading Twig docs, they have macros to declare some functions, I could easily implement one to achieve a a/a tag with Javascript embedded to simulate a PUT/DELETE button. But on S1, the

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

2011-03-28 Thread oscar balladares
Hi, this is the best security tutorial for S2 I have read. http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/ 2011/3/23 Vincent Lechemin vincent.leche...@gmail.com Hi, On Wed, Mar 23, 2011 at 4:34 PM, Sergi sergi.arger...@gmail.com wrote:

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread Dennis Jacobfeuerborn
On Monday, March 28, 2011 11:24:32 PM UTC+2, Matador wrote: Is it maybe due to ACL heriarchy ? I suggest you to try to inverse the ACL like: access_control: - { path: /.*, roles: ROLE_USER } - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } What I notice is that /*.

[symfony-users] Re: Newcomer: start symfony1 or Symfony2?

2011-03-28 Thread Roger Webb
Symfony2 is definitely stable enough to start a site with. I've had one running since PR6. You must, however, keep up with the updates. Each time I've updated I've had to spend about a half hour or so updating the things that have changed. A little change in the configuration here, they renamed

[symfony-users] Re: link_for() /put/delete on twig views??

2011-03-28 Thread Roger Webb
If your route is: my_route: pattern: /my/route defaults { _controller: MyBundle:MyController:doSomething } you would use path('my_route') to get a relative URL or simply url('my_route') to get a fully qualified URL. If you're using a slug: my_route: /my/route/{some_param} You'd do

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
What about removing the login path?? access_control: - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } Symfony should grant anonymous access to the login path by default. Im interested in this issue, I think this is a common escenario like making the site's homepage, the

Re: [symfony-users] Re: link_for() /put/delete on twig views??

2011-03-28 Thread oscar balladares
Hi Roger thanks for anwering, but I must say I misstyped the helper, the actually helper I meant is link_to. Sorry, my fault. [?] It is an a/a html tag that has an embedded form that post its data when the event OnClick is triggered from the a tag. I will repost this question :D 2011/3/28

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread Dennis Jacobfeuerborn
The problem was the security: false for the login firewall. This allows the user to visit the login page but because no security context is established you cannot use is_granted() anywhere on that page. If you want to do so you have to set security to true and then explicitly allow anonymous

[symfony-users] Content Negotiation Functionality

2011-03-28 Thread raviu
Hi, I'm embarking on a project where I require one URL to provide multiple formats of a document. The document should be served depending on the Accept field of the HTTP header. HTML or RDF. I know this can be done using apache mod_rewrite. Just want to know if this functionality is supported

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Good tip. I'll save it for further implementations. Regards. 2011/3/28 Dennis Jacobfeuerborn djacobfeuerb...@gmail.com The problem was the security: false for the login firewall. This allows the user to visit the login page but because no security context is established you cannot use

[symfony-users] [Symfony2] FrameworkExtraBundle

2011-03-28 Thread Dennis Jacobfeuerborn
The documentation for the FrameworkExtraBundle seems to be outdated so I'm struggling to get it to work. In the config I put: sensio_framework_extra: ~ And over one of my controllers I added: /** * @extra:Route(/, name=home) */ public function indexAction() { When I call the

[symfony-users] How to: Enable parsing of JSON responses for ESI tags / inclusion?

2011-03-28 Thread Marc MacLeod
Right now I believe only html and xml responses are parsed for ESI tags: In the Esi class: public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xml')) { $this-contentTypes = $contentTypes; } Why not JSON? Since JSON is automatically escaped I assume

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-28 Thread César Hernández
Even I have problems with ODM src/MiEmpresa/MiPrimerNOSQLBundle/Document/Personas.php ?php /** * Personas Document */ namespace MiEmpresa\MiPrimerNOSQLBundle\Document; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ODM\MongoDB\PersistentCollection; /**

Re: [symfony-users] Re: Pagination using routing

2011-03-28 Thread Srivatsa Prasad
Hi, Thank you, you saved me a lot of time. On Mon, Mar 28, 2011 at 8:38 PM, weaverryan weaverr...@gmail.com wrote: Hi Srivatsa- You cannot setup pagination using this method. You need to setup the pagination as you normally would - you can't make use of the sfPropelRoute functionality with

Re: [symfony-users] [symfony2] framework requirements - PHP accelerator not detected ?

2011-03-28 Thread seven seven
OK thanks ! Hmmm so far I was developing/testing all my projects with APC on my localhost, but when moving to my current production server I had already installed the eAccelerator (used for an old project) and I was about to make an update. Thanks allot for letting me know, as I don't have to go

[symfony-users] How do I start the session in symfony1.4 ?

2011-03-28 Thread sunny4sfony
So far I have been using session_start() for starting the session. What is the way to start the session using symfony1.4 libraries ? Also please point to the documentation on managing sessions, if available. Thanks -- If you want to report a vulnerability issue on symfony, please send it to