Re: [symfony-users] Error when adding new data - really really stucked with this one...

2011-04-28 Thread Francesco Tassi
On giovedì 28 aprile 2011 at 01.27, JP wrote: Hi everyone, I'm facing some issues after insert a Patient with a form generated with php symfony doctrine:generate-admin backend Patient --module=patient task. The form is inserting the data into a mysql DB correctly, but after the insert the

[symfony-users] link between frontend and backend

2011-04-28 Thread Hamza Tlili
hello I developed a project with symfony 1.4, I want to know how to make a link between my frontend application and my backend . thanks -- 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

[symfony-users] Re: Switching roles with moderation

2011-04-28 Thread Vincent Lechemin
Hi, I resolved my problem by adding in attemptSwitchUser line 128 (after the target user ($user) is fetched): if (false === $this-accessDecisionManager-decide($token, $user-getRoles())) { throw new AccessDeniedException(); } But i did not find any other way to add this test to the framework

[symfony-users] [SF2] The attribute key must be set for path doctrine.dbal.connections.default.driverOptions

2011-04-28 Thread noel guilbert
Hi, I'm trying to add some connections options in dbal connections, and I have this error: The attribute key must be set for path doctrine.dbal.connections.default.driverOptions Here is my configuration: # Doctrine Configuration doctrine: dbal: driver: %database_driver%

[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-04-28 Thread Javier Garcia
Thanks Massimiliano, you're right. I found the example below here http://www.symfony-project.org/jobeet/1_4/Doctrine/en/09: $browser- get('/')- click('Design')- get('/category/programming?page=2')- get('/category/programming', array('page' = 2))- post('search', array('keywords' =

[symfony-users] recaptcha

2011-04-28 Thread Hamza Tlili
hello i added a field captcha in my embede form i placed the private key and public key in my app.yml all work fine but now the field captcha has stopped working thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: The attribute key must be set for path doctrine.dbal.connections.default.driverOptions

2011-04-28 Thread Noel GUILBERT
I'm suspecting a bug with this configuration entry. I cannot figure out the problem, but with this config it's working: doctrine: dbal: driver: %database_driver% host: %database_host% dbname: %database_name% user: %database_user% password:

Re: [symfony-users] Re: The attribute key must be set for path doctrine.dbal.connections.default.driverOptions

2011-04-28 Thread Fabien Potencier
On 4/28/11 2:53 PM, Noel GUILBERT wrote: I'm suspecting a bug with this configuration entry. I cannot figure out the problem, but with this config it's working: doctrine: dbal: driver: %database_driver% host: %database_host% dbname: %database_name%

Re: [symfony-users] Re: The attribute key must be set for path doctrine.dbal.connections.default.driverOptions

2011-04-28 Thread noel guilbert
Done: http://trac.symfony-project.org/ticket/9726 Thanks On Thu, Apr 28, 2011 at 3:03 PM, Fabien Potencier fabien.potenc...@symfony-project.com wrote: On 4/28/11 2:53 PM, Noel GUILBERT wrote: I'm suspecting a bug with this configuration entry. I cannot figure out the problem, but with this

[symfony-users][Symfony2] Services in templates (speed test)

2011-04-28 Thread Nebula
there is a service my_service with getItems() method there is a main layout index.html.php somethere in main layout i want to get my_service items, what i need to do? call my_service_controller? // $view['actions']- render('myBundle:my_service_controller:action') and then in

[symfony-users] best way to implement transactional services with symfony?

2011-04-28 Thread Slavka
hey guys, my project currently offers a whole bunch of services to handle various buisness tasks, the services are represented using modules while actions represent the operations offered by the service (i.e. basic CRUD). now i am running into some issues where for e.g. a buisness task requires

[symfony-users] [sf2] access_denied_url doesn't want to work ? (pr12)

2011-04-28 Thread spike3111
Hello, I try to use access_denied_url, normally would call my Route, my controller and my view, but displays only the basic error page. #security.yml firewalls: main: pattern: .* anonymous: true access_denied_url: /hoho/error403 #routing.yml hoho:

[symfony-users] Re: Switching roles with moderation

2011-04-28 Thread Vincent Lechemin
I found a solution, maybe it could help someone. It is possible to do that by implementing your own event listener as a service on the event onSecuritySwitchUser. You also need to add the services security.context and security.access.decision_manager as arguments to your service. -- Vincent --

[symfony-users] attributes of form fields

2011-04-28 Thread lidaa
Hello everyone, I am looking for the equivalent of that in Symfony2: $ w = new sfWidgetFormInputText (); $ w- setAttribute ('class', 'foo'); Thank you in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] Symfony2, Twig and I18N

2011-04-28 Thread Elia Contini @Phiware
Hi all, I have a problem with Twig templates and I18N. I created a new Symfony2 project using Symfony2project (https:// github.com/Garfield-fr/Symfony2Project) and everything worked fine until I decided to add I18N support. I followed the official guide (http://symfony.com/doc/2.0/book/

[symfony-users] symfony 1.4: No User Object on Remote Clients

2011-04-28 Thread Stephen Cerniglia
I've been working on a project for a couple of weeks now and it works great when I browse from the local machine. However, when I use a browser not located on the web server machine, symfony is not creating a user object, i.e. $sf_user isn't available for my templates. As I said, if I run the

[symfony-users] A message logger for untranslated entries?

2011-04-28 Thread ton4y
Hello, I just wanted to ask is there a logger for untranslated messages in the Symfony Translator? I have searched the internet for such a thing, but I couldn't find anything useful.. I want to be able to develop my application and use the actual sentence / phrase in english instead of tokens or

[symfony-users] Re: Symfony2 exception trying to initalize FOSUserBundle with ODM/MongoDB

2011-04-28 Thread Vince
same here, I am looking for the reason too. Please share if you get the answer. Thanks,Vince -- 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

[symfony-users] Unrecognized options secret under framework.csrf_protection

2011-04-28 Thread Erkhembayar Gantulga
when i updated vendors.sh, my app_dev.php shows following error // Fatal error: Uncaught exception 'Symfony\Component\Config\Definition \Exception\InvalidConfigurationException' with message 'Unrecognized options secret under framework.csrf_protection' -- If you want to report a vulnerability