Re: [symfony-users] Re: User Authentication

2011-03-08 Thread Florian Semm
Am 08.03.2011 15:56, schrieb Donald: OK, I modified the security.yml file as follows: # app/config/security.yml security: access_denied_url: /error403 providers: entity: entity: { class: UserBundle:User, property: username } firewalls: main: form_login:

Re: [symfony-users] [Symfony2 PR7] - Document mapping in extended bundles

2011-03-08 Thread Christophe COEVOET
Le 09/03/2011 02:58, jdewit a écrit : I've looked at other extended bundles like in lichess and the thing to do seems to be to use xml mapping in the base bundle and annotations for extra fields in the extended bundle. Is this the suggested way of things? I experimented with using xml annotat

[symfony-users] [Symfony2 PR7] - Document mapping in extended bundles

2011-03-08 Thread jdewit
I've looked at other extended bundles like in lichess and the thing to do seems to be to use xml mapping in the base bundle and annotations for extra fields in the extended bundle. Is this the suggested way of things? I experimented with using xml annotations in an extended bundle but it doe

[symfony-users] Re: [pr7] doctrine:generate:entities

2011-03-08 Thread Craige
Ignore me. I solved the problem. For anybody interested, you must add your bundles to 'doctrine.orm.mappings' if you want to be able to use their mappings. eg... doctrine: orm: mappings: UserBundle: ~ On Mar 8, 8:07 pm, Craige wrote: > I'm trying to create some Doctrin

[symfony-users] [symfony2] [pr7] doctrine:generate:entities

2011-03-08 Thread Craige
I'm trying to create some Doctrine entities from yml schema, but I'm running into trouble: $ app/console doctrine:generate:entities UserBundle --- "Bundle UserBundle does not contain any mapped entities." However I know that that entities exist in this the entity dirctory. I then try: $ app/cons

[symfony-users] [symfony2] [pr7] doctrine:generate:entities

2011-03-08 Thread Craige
I' -- 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@googlegroups.com To unsubscribe fro

Re: [symfony-users] [symfony2][pr7] - MongoDb config

2011-03-08 Thread jdewit
Thanks Christophe. -- 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@googlegroups.com To

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread Gergely Csépány
It must have been the SSL setup in apache, I use the default .htaccess files symfony comes with. I hacked a workaround in the WebContoller class' redirect function to always change https to http. The problem wasn't obvious to me, because I could access symfony on http, but symfony thought I access

Re: [symfony-users] [symfony2][pr7] - MongoDb config

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 22:37, jdewit a écrit : Getting the error: Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not found in /var/www/symfony-standard/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php on line 49 config.yml doctrine_mongo_db: server: mon

[symfony-users] [symfony2][pr7] - MongoDb config

2011-03-08 Thread jdewit
Getting the error: Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not found in /var/www/symfony-standard/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php on line 49 config.yml doctrine_mongo_db: server: mongodb://localhost:27017 default_datab

[symfony-users] Re: [symfony2, PR7] customizing validation messages for form fields

2011-03-08 Thread Andras
Thanks, but RepeatedField has a getter constraint, not a property constraint, and I don't know where and how to override the message: The two values should be equal Andras On márc. 8, 17:56, oscar balladares wrote: > Hi. > > If you are using a YML file, rem

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread Drew Sire
I would first check your htaccess file. Can you post the contents of it in a reply? I am having redirect problems with sfGuardPlugin. Maybe I will uncover something by helping you. On Tue, Mar 8, 2011 at 9:37 AM, Justen Doherty wrote: > what happens you try a non-symfony page and call http:// ..

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread Justen Doherty
what happens you try a non-symfony page and call http:// ... ? On Tue, Mar 8, 2011 at 5:20 PM, oscar balladares wrote: > I totally agree with Gareth. > > When configuring apache to work with SSL; it will automatically redirects > any request - under the SSL domain e.g jobeet.com - to https protoc

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread oscar balladares
I totally agree with Gareth. When configuring apache to work with SSL; it will automatically redirects any request - under the SSL domain e.g jobeet.com - to https protocol. 2011/3/8 Gareth McCumskey > Eliminate the likely candidates: > > 1. Problem happens on one machine and not the other. > 2

Re: [symfony-users] [Symfony2] Can't display the debug toolbar on custom bundle

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 15:36, fa a écrit : My page is well displayed but there is no tool bar Any ideas? Does your page contains well-formed HTML ? If not it is totally normal as the WDT is only injected when a tag is found. This is needed to avoid duplicating it when using ESI. -- Christophe |

Re: [symfony-users] Symfony 2 and MSSQL

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 13:16, Tomas a écrit : Hello!! I will need to connect to a MSSQL server DB in my next (first) Symfony 2 project, which ORM should I use / is best prepared to work with MSSQL (probably sql server 2005) ? propel or doctrine? Thanks! When using Symfony2 you should really use Doctrin

Re: [symfony-users] [symfony2, PR7] customizing validation messages for form fields

2011-03-08 Thread oscar balladares
Hi. If you are using a YML file, remember to override the "message" property. For example: someColumName: AssertType: type: Integer message: { "This value must be an integer" } If you have read the validation documentation you should get the idea :D Sorry,

[symfony-users] Re: User Authentication

2011-03-08 Thread Philip Cole
I have been having the exact same problem since this morning. And I haven't come up with a solution since unfortunately... On Mar 8, 2:56 pm, Donald wrote: > OK, I modified the security.yml file as follows: > > # app/config/security.yml > security: >   access_denied_url: /error403 > >   providers

[symfony-users] Re: User Authentication

2011-03-08 Thread Donald
OK, I modified the security.yml file as follows: # app/config/security.yml security: access_denied_url: /error403 providers: entity: entity: { class: UserBundle:User, property: username } firewalls: main: form_login: check_path: /login_check login_path

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread Francesco Levorato
Do you have a PhpMyAdmin installation? Can you build-sql and try to manually import sql via phpmyadmin? On Tue, Mar 8, 2011 at 10:40 AM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: > PDO connection[2006] server mysql has gone away -- francesco levorato aka flevour http

[symfony-users] Users registered, I want the user to automatically login, how to do this?

2011-03-08 Thread Wellming
Users registered, I want the user to automatically login, how to do this? -- 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

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread Francesco Levorato
I don't see any difference between the 2 commands you report. Have you read my last mail? Have searched Google for help on changing that configuration value? Good luck, Francesco On Tue, Mar 8, 2011 at 9:55 AM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: > hi fracessco,, > w

[symfony-users] Symfony 2 and MSSQL

2011-03-08 Thread Tomas
Hello!! I will need to connect to a MSSQL server DB in my next (first) Symfony 2 project, which ORM should I use / is best prepared to work with MSSQL (probably sql server 2005) ? propel or doctrine? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] [Symfony2] Can't display the debug toolbar on custom bundle

2011-03-08 Thread fa
Hi everyone, I'm using the sf2 sandbox pr6: If I try to display the debug bar from the Hello Bundle i got it with this url http://localhost/symfony2/sandbox/web/app_dev.php I tried to create a custom bundle with this command: C:\wamp\www\symfony2\sandbox>php app/console init:bundle "Myvendor

[symfony-users] Re: Bundle HelloBundle does not contain any mapped entities.

2011-03-08 Thread fa
Finally I got it working with a simplier config doctrine: dbal: dbname: mydb user: root password: null logging: %kernel.debug% orm: auto_generate_proxy_classes: %kernel.debug% mappings: HelloBundle: ~ I must have been fool by the

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

2011-03-08 Thread umpirsky
My config: doctrine: dbal: driver: pdo_mysql dbname: name user: root password: logging: %kernel.debug% orm: auto_generate_proxy_classes: %kernel.debug% mappings: HelloBundle: ~ when I run console:doctrine:import HelloBundle yml it g

[symfony-users] Symfony2 doctrine:mapping:import

2011-03-08 Thread umpirsky
Hi. I'm using latest Symfony2 package and latest sandbox app. In my config I have: CODE: SELECT ALL doctrine: dbal: driver: pdo_mysql dbname: name user: root password: logging: %kernel.debug% orm: default_entity_manager: default default_connect

[symfony-users] [symfony2, PR7] customizing validation messages for form fields

2011-03-08 Thread Andras
Hi, How can I customize the validation messages for form fields like RepeatedField ("The two values should be equal.")? Andras -- 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 t

Re: [symfony-users] Is it possible to programmatically login to Symfony2?

2011-03-08 Thread Gareth McCumskey
I have not used Symfony2 at all yet, but in symfony 1.x, all you had to do was $this->getUser()->setAuthenticated(true); and they were authenticated. The best way to lead up to that point is create a unique code (maybe using md5(microtime()) ) and store that against the users account in the d

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread Gareth McCumskey
Eliminate the likely candidates: 1. Problem happens on one machine and not the other. 2. Code does not change between one machine and the other. 3. Therefore problem is not code, problem is the other machine. There is probably a web server or proxy setting that is converting all port 80 http tr

[symfony-users] sfWidgetFormDoctrineChoice with i18n and order by

2011-03-08 Thread Marek
Hi, I have a translated model Country and I need to display drop down ordered by translated field 'name'. 'order_by' option does not work with translated fields, so I have to use 'query' option: $this->setWidget('country_id', new sfWidgetFormDoctrineChoice( array('model' => 'Country',

Re: [symfony-users] Got error stating 'Couldn't locate driver named mssql' when attempting php symfony doctrine:insert-sql

2011-03-08 Thread Christopher Yee Mon
Well the point in the tutorial where it tells you to try and connect it to the database is right after having made the project and an application. So all it has is the place holder 'Symfony Project Created' page. (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01) That does work through a br

Re: [symfony-users] [S2 pr7] generating entities classes from converted yml files

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 07:52, Jean-Michel Schelcher a écrit : Hi, I converted an Doctrine 1 database to some .yml schema files. How can I generate entities files (classes) from them ? I generated a bundle, put that files into /Resources/config/doctrine/metadata/orm/, renamed as the bundle name et

Re: [symfony-users] Security.yml just ignored...

2011-03-08 Thread Christophe COEVOET
Le 07/03/2011 21:34, Thecrusty a écrit : Hi i just downloaded the Symfony 2 PR7 and i am just wondering why mit project simply ignores the content off my app/config/security.yml file. I can just fill it with rubbish, but Symfony does not complain... Do i have to link this file into my app/config

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread mohamed sabri ben sassi
i increase this variable to 128M but its same thing it rapport me the same message error PDO connection[2006] server mysql has gone away 2011/3/8 Francesco Levorato > On Tue, Mar 8, 2011 at 9:36 AM, mohamed sabri ben sassi < > mohamedsabri.bensa...@gmail.com> wrote: > >> how can i do this i

[symfony-users] Re: How to modify the newsletter from my site

2011-03-08 Thread rahhal mahassen
the script of newSuccess.php is attached below 2011/3/8 rahhal mahassen > Hello, > I want to modify the newsletter page from my site > http://www.juridique-enligne.com/. > I want,when the user want to subscribe to the newsletter,he only write his > email(so that i want to delete the next page in

[symfony-users] How to modify the newsletter from my site

2011-03-08 Thread rahhal mahassen
Hello, I want to modify the newsletter page from my site http://www.juridique-enligne.com/. I want,when the user want to subscribe to the newsletter,he only write his email(so that i want to delete the next page in whitch the user must rewrite his email and validate). Can you please help me to solv

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread Francesco Levorato
On Tue, Mar 8, 2011 at 9:36 AM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: > how can i do this i didint understand you perfectly > max_allowed_packet is a MySQL server configuration. If your server has a low value for that configuration, it might fail when called with a la

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread mohamed sabri ben sassi
hi fracessco,, when i write the command php symfony doctrine:build-sqland the file databse.yml ('mysql:host:localhost:9090;dbname=jobeet' root) it work and he generate the file sql but if i write the command php symfony doctrine:build-sqland the file databse.yml ('mysql:host=localhost:90

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread mohamed sabri ben sassi
how can i do this i didint understand you perfectly 2011/3/7 Francesco Levorato > Hi Mohamed, > is it your first application using this MySQL server? > You may try increasing a mysql server configuration variable > called max_allowed_packet. > Let us know how it goes! > Cheers, > Francesco > >

Re: [symfony-users] sfWidgetFormDate default date not working

2011-03-08 Thread Gábor Fási
Symfony's going to interpret it via strtotime[1], so use a format it understands, like Y-m-d. Alternatively, you can pass a unix timestamp there. [1] http://trac.symfony-project.org/browser/branches/1.4/lib/widget/sfWidgetFormDate.class.php#L73 On Mon, Mar 7, 2011 at 20:00, GaB wrote: > Hi, can

[symfony-users] Filter before routing, and sfStopExceptions

2011-03-08 Thread mavinman
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 redirect URLs myself in certain situations using a filter. The urls that needed to be parsed using my filter will otherwise fall through all the r

[symfony-users] Bug trac for symfony sandbox

2011-03-08 Thread bitlogic
Hi all, Is there any place to submitt bugs for symfony sandbox? Best regards, Luís Sousa -- 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

[symfony-users] [S2 pr7] generating entities classes from converted yml files

2011-03-08 Thread Jean-Michel Schelcher
Hi, I converted an Doctrine 1 database to some .yml schema files. How can I generate entities files (classes) from them ? I generated a bundle, put that files into /Resources/config/doctrine/metadata/orm/, renamed as the bundle name et corrected the first line. But when I try a ./console

[symfony-users] [Symfony2] FOS\UserBundle setup problems (Unable to create user)

2011-03-08 Thread Nick Jennings
Hi All, I've got the latest from the symfony-standard & UserBundle git repositories, have gone through the instructions in UserBundle\Resources\doc\index.rst and gotten things setup. However I'm unable to create a new user. When I go to [url]/user/new - out the form and click submit, I get the

[symfony-users] fixture - foreign key error when trying to import data

2011-03-08 Thread Maxence cornu
hi everyone, I have an error in my fixtures files when i'm trying to import data. I have two files, 100_vehicules_types and 200_vehicules : VehicleType: Moto: name: moto Scooter: name: scooter Car: name: car MP3: name: mp3 Vehicle: moto_: type_id: Moto name: mo

[symfony-users] [Symfony2] FOS\UserBundle setup problems (Unable to create user)

2011-03-08 Thread Nick Jennings
Hi All,  I've got the latest from the symfony-standard & UserBundle git repositories, have gone through the instructions in UserBundle\Resources\doc\index.rst and gotten things setup. However I'm unable to create a new user. When I go to [url]/user/new - out the form and click submit, I get the

[symfony-users] Security.yml just ignored...

2011-03-08 Thread Thecrusty
Hi i just downloaded the Symfony 2 PR7 and i am just wondering why mit project simply ignores the content off my app/config/security.yml file. I can just fill it with rubbish, but Symfony does not complain... Do i have to link this file into my app/config/config.yml? Greetz! -- If you want to r

Re: [symfony-users] PDO Connection Error

2011-03-08 Thread Francesco Levorato
Hi Mohamed, is it your first application using this MySQL server? You may try increasing a mysql server configuration variable called max_allowed_packet. Let us know how it goes! Cheers, Francesco On Mon, Mar 7, 2011 at 4:12 PM, mohamed sabri ben sassi < mohamedsabri.bensa...@gmail.com> wrote: >

Re: [symfony-users] Re: Trying to unset a field before saving it, using offsetUnset()

2011-03-08 Thread Francesco Levorato
Hi Javier! Why are you unsetting a field in the action? What's your purpose? Cheers, Francesco On Mon, Mar 7, 2011 at 6:43 PM, Javier Garcia wrote: > Well I mean $this->configuration->getForm()->getWidgetSchema()- > >offsetUnset('clients'); > > On Mar 7, 7:40 pm, Javier Garcia wrote: > > Hi, >

[symfony-users] sfWidgetFormDate default date not working

2011-03-08 Thread GaB
Hi, can anybody tell how to setup the default date for a sfWidgetFormDate in SF1.4 ? $range = range('2008', date('Y')+2); $years = array_combine($range,$range); $dateFormat = '%day%/%month%/%year%'; *$dateWidget = new sfWidgetFormDate(array('default' => '14/12/2010'));*

Re: [symfony-users] Got error stating 'Couldn't locate driver named mssql' when attempting php symfony doctrine:insert-sql

2011-03-08 Thread Francesco Levorato
Hi there, are you getting the same error when accessing the application through the web server? Cheers, Francesco On Mon, Mar 7, 2011 at 6:09 PM, TinyGrasshopper < christopher.yee...@gmail.com> wrote: > Hello, > > I'm trying to follow the Practical symfony 'jobeet' tutorial at > http://www.symfon