[symfony-users] Re: Encoder error after login

2011-01-14 Thread Douglas
Hi there Instead of: encoder: Symfony\Component\Security\User\User: plaintext try: encoder: class: Symfony\Component\Security\User\User algorithm: plaintext Douglas On Jan 13, 9:14 am, Duffman wrote: > After login i get the error-message: > > Uncaught exception 'RuntimeExc

[symfony-users] Symfony2 - getting error when running unit tests for MongoDB documents

2011-01-14 Thread Mauricio Morales
Hello guys, First of all, has anybody written unit tests for MongoDB document objects?. I've been playing around with Symfony2 and MongoDB and I've had problems when running unit tests for Mongo. Basically I have a test in myBundle/Tests/Document/UserTest.php class UserTest extends \Doctrine\ODM

[symfony-users] [symfony 2] Getting configured DBAL connection outside controller

2011-01-14 Thread Michal_V
Hi, Is there a proper way how to get configured db connection outside controller classes? My use case is implementation of a custom UserProvider class and retrieving user from database based on username column. THanks! -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Error when not logged in

2011-01-14 Thread SeNdEr
Hello Im building my website with symfony and im using sfguard for user management, it works great when im logged in, but when not i get this error: Fatal error: Call to a member function __toString() on a non-object in . /sfDoctrineGuardPlugin/lib/user/sfGuardSecurityUser.class.php on line

[symfony-users] sfWidgetFormChoice

2011-01-14 Thread sinu govind
Hi all, I have the following in my schema.yml title: type: enum length: 2 values: [Mr, Ms] default: Mr In my databases.yml, I have given attributes: use_native_enum: true In my registration form, I have $this->setWidget('title', new sfWi

Re: [symfony-users] tr_TR doesn't work

2011-01-14 Thread Erkhembayar Gantulga
Hi *DreadsnCo*, i encountered such problem long ago. In my situation my culture wasn't in symfony default i18n data list (/symfony/lib/i18n/data). I saw that your culture (tr_Tr) already in there. So I think that it isn't serious problem. Maybe you should check this in homepage action $this->getU

Re: [symfony-users] How to hide the label of the object actions in the backend list?

2011-01-14 Thread Ramunas
Well, this one was sufficient for me: object_actions: _delete: {label: ' '} But if this works not ok for you, then you can consider to overwrite the template. -- http://www.symfonyreference.com - Symfony Configuration Reference (schema.yml, databases.yml, settings.yml, etc

[symfony-users] Functional Test : click....

2011-01-14 Thread benoitW
Hi all, What means number 27 is Jobeet functional categoryActionsTest ? Official code follows : info(sprintf(' 1.2 - Categories with more than %s jobs also have a "more" link', sfConfig::get('app_max_jobs_on_homepage')))-> get('/')-> click('27')-> with('request')->begin()-> isParamete

[symfony-users] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-14 Thread Douglas
Thanks for this (sharing the app on GitHub), I'm taking the same introductory steps so will be watching this with interest. On Jan 9, 2:03 am, Tom Boutell wrote: > Welcome to SillyCMS: > > https://github.com/boutell/SillyCMS > > SillyCMS, despite the name, is really more of a simple Wiki. It is

[symfony-users] Re: Functional Test : click....

2011-01-14 Thread Massimiliano Arione
'27' is the label of a link, something like 27 cheers Massimiliano -- 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

[symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-14 Thread Zach
all: propel: class: sfPropelDatabase param: dsn: mysql://username:password@host/dbname encoding:utf8 This was the first thing I tried adding when it wasn't working... then cleared the cache... nothing changed. All foreign characters are displayed as "?" i

[symfony-users] app.yml to configure model?

2011-01-14 Thread Felix E. Klee
In a Symfony 1 application, I put post processing of database data in the model. Thus, one can simply call something like: row->getPostProcessedData() If the data is already in post-processed form in the database, it is returned as is. Otherwise it is first post-processed, then written to the d

Re: [symfony-users] app.yml to configure model?

2011-01-14 Thread Gareth McCumskey
There should be no problem doing so if these settings are likely to be edited by others later (such as an app you hope to distribute or sell and config settings need to be altered for each installation). However, remember, if these settings are very unique to that one model class and very unlikely

[symfony-users] Re: Functional Test : click....

2011-01-14 Thread benoitW
I have to say it works fine when I replace that number 27 by 'Programming'... On 14 jan, 12:03, benoitW wrote: > Hi all, > > What means number 27 is Jobeet functional categoryActionsTest ? > > Official code follows : > > info(sprintf('  1.2 - Categories with more than %s jobs also have a > "more"

Re: [symfony-users] Re: Encoder error after login

2011-01-14 Thread Florian Semm
Hi, no sorry it doesn't work with this config. I found the first encoder-config in the symfony2-docu. FS Original-Nachricht > Datum: Thu, 13 Jan 2011 09:45:13 -0800 (PST) > Von: Douglas > An: symfony users > Betreff: [symfony-users] Re: Encoder error after login > Hi ther

[symfony-users] Re: Getting configured DBAL connection outside controller

2011-01-14 Thread Christophe COEVOET
The good solution is to define your UserProvider as a service and pass the DBAL connection (or the EntityManager if you sue the ORM) as an argument. You can also pass the complete container as an argument. Btw, you should look at https://github.com/FriendsOfSymfony/UserBundle which implements it.

[symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-14 Thread Gabriel Petchesi
AFAIK the translations are cached as serialized data in cache/ directory (even if the translations are coming from the DB), check if that looks correctly in a utf-8 editor. gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Error when not logged in

2011-01-14 Thread Gareth McCumskey
The part causing a problem is: $sf_user is not a string it is an sfGuardUser object. If you want to echo the username you need to call the getUsername() method on that object: getUsername() ?> On Thu, Jan 13, 2011 at 3:37 PM, SeNdEr wrote: > Hello > > Im building my website with symfony and

Re: [symfony-users] sfWidgetFormChoice

2011-01-14 Thread Gareth McCumskey
What does your action and template look like where you use the form? On Thu, Jan 13, 2011 at 2:25 PM, sinu govind wrote: > Hi all, > > I have the following in my schema.yml > > title: > type: enum > length: 2 > values: [Mr, Ms] > default: Mr > > In my databases.yml, I hav

[symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-14 Thread Zach
I opened /httpdocs/cache/frontend/prod/i18n/apps/frontend/i18n/messages.es/es.cache and the characters looked correct in my editor. Any other suggestions? I appreciate your help very much. Zach -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-

[symfony-users] overwrite session configuration in filter class

2011-01-14 Thread Christian
Hi, is it possible to overwrite session configuration (session_name) in my own filter class? 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 subscribed to the Google Groups "symfony u

Re: [symfony-users] overwrite session configuration in filter class

2011-01-14 Thread Gareth McCumskey
On 15/01/2011 02:28, Christian wrote: Hi, is it possible to overwrite session configuration (session_name) in my own filter class? thanks By "session_name" what do you mean? You can overwrite any session variables you store at any point. In an action: $this->getUser()->setAttribute('attribu

[symfony-users] memory limit behavior

2011-01-14 Thread ashton
Hey guys, I'm having trouble with an issue where I see different symfony behavior on different machines. Specifically, in my dev environment, I don't run out of memory, but in my production environment, I do. However, both environments have the same memory_limit value (as far as I can tell) ('php

[symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-14 Thread Gabriel Petchesi
Not many suggestions left cause it should work with the setup done already. Try out the following: 1. Download the page via wget/curl and check the file with a UTF-8 capable editor (not browser) 2. Different browsers - if you use a localized build of the browser (not english) there is a good