[symfony-users] Re: How to change default sfValidatorString max length message?

2011-01-19 Thread Gabriel Petchesi
Define your own validator class myValidatorString which extends sfValidatorString and overrides the error message text. gabriel -- 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

Re: [symfony-users] Remember checkbox sfGuardAuth

2011-01-19 Thread Gábor Fási
Did you set up the remember me filter? On Tue, Jan 18, 2011 at 13:03, sinu govind wrote: > Hi, > > I am using the sfForkedDoctrineApplyPlugin and in my layout.php I have the > following to display the sfGuardAuth signin form > > echo get_component('sfGuardAuth', 'signin_form'); > > The register,

[symfony-users] Re: Image resize using sfImageTransformExtraPlugin

2011-01-19 Thread Ardison Nicolas
I was looking and i don't know if it's a problem with PHP version, i'm using 5.3.1 I got a lot of the following messages when i installed the plugin, (I'm using symfony 1.4) Deprecated: Function set_magic_quotes_runtime() is deprecated in /opt/lampp/lib/php/PEAR/Registry.php on line 1144 Deprec

[symfony-users] Re: Why is Symfony Session data encrypted on my production server ?

2011-01-19 Thread Mathieu Comandon
Yes, it was actually suhosin that was causing the problem, thanks :) On Jan 18, 4:29 pm, Sergey Linnik wrote: > suhosin? > > 2011/1/18 Mathieu Comandon : > > > > > > > > > I want to share a single authentificaition method for to Symfony > > websites sharing the same top-domain. > > I use a cookie

[symfony-users] routing and virtual host

2011-01-19 Thread phil
Hello, I work on an extranet projet which is hosted via a virtual host on a server (called X to make more simple) My problem is simple to explain but I don't kown how to resolve it. This extranet use symfony and many link are broken. For example: https://extratest.xxx.com/applications/netquest_e

Re: [symfony-users] SF2 custom get methods in entity repository class

2011-01-19 Thread stof
On Wed, 19 Jan 2011 05:28:37 -0800 (PST), Venzon wrote: > I have problem creating custom getters inside my entity repository > class. > When I call my getter from controller: > > $qb = $this->get('doctrine.orm.entity_manager') > ->getRepository('HelloBundle:Test') > ->getCustomResults();

[symfony-users] I recently upgraded to a new install.

2011-01-19 Thread Llew
Hi All, I recently moved from a CentOS 5 box that our programmer set symphony up on to a new server since the hardware is starting to die, and the programmer has left the company. Since testing it on the new box I have come up against many problems that googling really hasn't resolved. The problem

[symfony-users] Re: [Symfony2] MongoDB Exception: "Every Document must have an identifier/primary key"

2011-01-19 Thread Philipp Schächtele
I had already tried to add the ":mongodb", which didn't work either. But I solved that issue after a more then a week of research, by deleting an MongoDB-XML-Configuration File which seems to have caused the error. While trying to find a way how to map Bundles for the Document Manager (which was o

[symfony-users] How to change default sfValidatorString max length message?

2011-01-19 Thread Basil Hussain
I have a couple of forms with many sfValidatorString validators on them. The default 'max_length' error message ('"%value%" is too long (%max_length% characters max).') is really not suitable to the way my forms are laid out in the HTML, because repeating the too-long value within the message throw

[symfony-users] Re: Doctrine2 doctrine:import:mapping Exception unknown database type enum

2011-01-19 Thread s.rohweder
Ok, found out why: i worked for a long time with Propel and it seems that Propel still supports enum types. But Doctrine2 does not. So its only Doctrine related and not a Symfony2 problem. Thx to all readers. On 17 Jan., 15:18, "s.rohweder" wrote: > Hi all, > > i tried to import a schema from

Re: [symfony-users] Why is Symfony Session data encrypted on my production server ?

2011-01-19 Thread Sergey Linnik
suhosin? 2011/1/18 Mathieu Comandon : > I want to share a single authentificaition method for to Symfony > websites sharing the same top-domain. > I use a cookie valid on all subdomains and sfPDOSessionStorage for > keeping session data. > > factories.yml is set up like this on both projects: > >

Fwd: [symfony-users] Why is Symfony Session data encrypted on my production server ?

2011-01-19 Thread Renoir Boulanger
sorry. sent from bad address Just curious. Is you production server has SSL connections? I mean, both prod and dev environement has the same setup even with SSL? Because cookies created within a SSL connection doesnt behave the same as the ones created without. -- An auditor of "Securi

[symfony-users] Error - Unable to scaffold nonexistent model "Interest"

2011-01-19 Thread rashu
Hello symfony users, I am new to symfony.. 1) Step 1:- As I have creted new tables in schema.yml test: _attributes: { idMethod: native } t_id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true } test_name: { type: VARCHAR, size: '20', required: true, default: '

[symfony-users] Remember checkbox sfGuardAuth

2011-01-19 Thread sinu govind
Hi, I am using the sfForkedDoctrineApplyPlugin and in my layout.php I have the following to display the sfGuardAuth signin form echo get_component('sfGuardAuth', 'signin_form'); The register, the login/logout all work fine. But I cannot get the Remember checkbox working? Please help!!! Sinu --

[symfony-users] Re: Strange behaviour when creating config_autoload.yml.php

2011-01-19 Thread Stevan
Hi, we just got the same problem here, To solve it, you have to modify autoload.yml in lib/config/config : You can specify a folder to be not loaded by autoload, so we added plugins to the exclude option, then we dont let smfony to load the data dir wich contains the templates. ... name:

Re: [symfony-users] Re: Grails to Symfony2 Benchmark

2011-01-19 Thread Gareth McCumskey
"Lies, damned lies and benchmarks" (To mangle a popular phrase) On Wed, Jan 19, 2011 at 4:27 PM, Tom Boutell wrote: > Mmm. His throughput was 3x higher with APC, and it does look like he > enabled it correctly, but he was still pegging CPU and memory the > whole time. I would have to study his

Re: [symfony-users] Apostrophe 1.5 is out!

2011-01-19 Thread Ardison Nicolas
Sounds good =), i will take a look and see the spanish translations. On 18 January 2011 19:40, Tom Boutell wrote: > At long last, Apostrophe 1.5 has been released. It was worth the wait. > > Apostrophe, for those who don't know, is a content management system > built on Symfony. It has been thro

[symfony-users] Image resize using sfImageTransformExtraPlugin

2011-01-19 Thread Ardison Nicolas
Hello everyone, i'm trying to use the *sfImageTransformExtraPlugin* that depends in* sfImageTransformExtraPlugin*. I have used the sfImageTransformPlugin without problem. But i really need the Extra plugin, because it's more powerful and you can just put a simple in the template of an action and sh

[symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-19 Thread Jérôme TEXIER
It's not a problem of location of the repository class but a problem of configuration. Your problem is that getRepository() is returning a default Doctrine \ORM\EntityRepository class (which only contains find, findBy, findAll) and not the custom one you created. You have to explicitly tell what i

[symfony-users] Re: Doctrine2 ODM missing hydrator files

2011-01-19 Thread Jérôme TEXIER
Well done. I agree that with the actual lack of documentation, playing with Symfony2 could be sometimes enigmatic... On 18 jan, 12:58, Damon Jones wrote: > You're welcome, I'm glad I could help. > > I had the same problem and I couldn't find anything in the Symfony2 or > Doctrine documentation. I

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Justen Doherty
indeed there are many ways to skin a cat! On Wed, Jan 19, 2011 at 1:34 PM, Gareth McCumskey wrote: > .. > > Which is essentially what I suggested without the use of node.js > > On Wed, Jan 19, 2011 at 3:12 PM, Justen Doherty wrote: > >> ah yes, it helps when you read the full thread! >> >> i

[symfony-users] Re: Grails to Symfony2 Benchmark

2011-01-19 Thread Tom Boutell
Mmm. His throughput was 3x higher with APC, and it does look like he enabled it correctly, but he was still pegging CPU and memory the whole time. I would have to study his specific code more to figure out if he's doing anything "wrong" for Symfony that he's doing "right" for Grails. On Jan 17, 4:

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Gareth McCumskey
.. Which is essentially what I suggested without the use of node.js On Wed, Jan 19, 2011 at 3:12 PM, Justen Doherty wrote: > ah yes, it helps when you read the full thread! > > in that case i would code it using node.js as a streaming socket server and > get clients to login/update their he

[symfony-users] SF2 custom get methods in entity repository class

2011-01-19 Thread Venzon
I have problem creating custom getters inside my entity repository class. When I call my getter from controller: $qb = $this->get('doctrine.orm.entity_manager') ->getRepository('HelloBundle:Test') ->getCustomResults(); I get error: [...]The method name must start with either findBy or fi

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Justen Doherty
ah yes, it helps when you read the full thread! in that case i would code it using node.js as a streaming socket server and get clients to login/update their heartbeat status using the client side! On Wed, Jan 19, 2011 at 12:56 PM, strycore wrote: > Hi, > > I have implemented such a thing in a

Re: [symfony-users] Re: sfEasyGMapPlugin: Mulitple maps on one page

2011-01-19 Thread Michał Piotrowski
Ping? W dniu 12 stycznia 2011 12:23 użytkownik Michał Piotrowski napisał: > Hi, > > 2010/7/12 Fabrice Bernhard : >> Ok so this is actually a working strategy ? I will implement it and >> name the function initialize 'intiialize_'.$map_name by default so >> that users don't need to actually change

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread strycore
Hi, I have implemented such a thing in a symfony project using APE Project ( http://www.ape-project.org/ ). I tink APE has all the features you require, and it can show an up to date user list (the default timeout for a user leaving the website is something like 30 seconds, and that's the worse ca

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Gareth McCumskey
The requirement was to show a person as online for an IM chat client type scenario so that as soon as possible after he leaves the page or closes browser or logs out other people "People Online List" will be updated correctly On Wed, Jan 19, 2011 at 1:14 PM, Justen Doherty wrote: > true - but th

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Justen Doherty
true - but the requirement is for logged in users only, if you had a reason for a user to stay on the same page for more than say, five minutes, then you would need an ajax heartbeat to update the timestamp we would have to understand the application a bit more rather than providing technical solu

Re: [symfony-users] Re: Get all logged in users

2011-01-19 Thread Gareth McCumskey
But you would need to update them not being logged in at some point. And what if they just closed their browser window without logging out? Or what if they log in and they have been surfing the site for the last two hours ... that logged in time would still stay the same On Tue, Jan 18, 2011 a