Re: [symfony-users] use_javascripts_for_form($form) apparently not working

2010-04-12 Thread Gábor Fási
That's not how it works. Define a getJavascripts() function in your form class that return an array of the neccessary js files. See the links: http://trac.symfony-project.org/browser/branches/1.4/lib/helper/AssetHelper.php#L621

[symfony-users] Please Help! Stable version of Symphony in 2009

2010-04-12 Thread User
I need to know what ws the most stable version of Symphony Between January and June of 2009. If there were multiple versions stable during this time, what date (month) did they become stable? Please help! If you can tell me where I can find this information in writing, I would appreciate that

[symfony-users] Please Help! Stable version of Symphony in 2009

2010-04-12 Thread User
I need to know what ws the most stable version of Symphony Between January and June of 2009. If there were multiple versions stable during this time, what date (month) did they become stable? Please help! If you can tell me where I can find this information in writing, I would appreciate that

Re: [symfony-users] Please Help! Stable version of Symphony in 2009

2010-04-12 Thread Gábor Fási
If you mean Symphony, the CMS, check their site: http://symphony-cms.com/ If you mean symfony, the PHP framework, there were three stable major versions: - 1.0 (support ended in January 2010) - 1.1 (support ended in June 2009) - 1.2 (released in December 2008, support ended in November 2009)

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Dennis... create a simple loop of approx 10,000 iterations and create a criteria inside the loop... and echo the php's memory usage... I this the issue is quite obvious... On Mon, Apr 12, 2010 at 4:33 PM, Richard U richard@gmail.com wrote: I am uploading a csv file.. i require looping

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Dennis Benkert
So, how big are these CSV files? How many lines are you processing and can you tell us how many entries you're inserting to your DB using Propel? It would be best if you could show us the code that implements what you described in your last mail. Investing maybe 30 minutes to write an email that

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Alvaro Videla
Except from the fact that I haven't read your code, what you describe is a problem with PHP versions prior to 5.3 The problem is in the GC of the engine I'm not blaming it on PHP, but you could try that. If you can't upgrade to the new PHP, then I'm sorry, but what you try to do may not work at

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
I thought that was the issue... , the thing is how can i work around it? On Mon, Apr 12, 2010 at 5:38 PM, Alvaro Videla harryjek...@gmail.com wrote: Except from the fact that I haven't read your code, what you describe is a problem with PHP versions prior to 5.3 The problem is in the GC of

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Dennis thats the function if you want to have a look at it... public function executeIndex(sfWebRequest $request) { ini_set('memory_limit','512M'); set_time_limit(60*5); sfConfig::set('sf_logging_enabled', false);

Re: [symfony-users] use_javascripts_for_form($form) apparently not working

2010-04-12 Thread Michael Hodges
Thanks Gábor. Makes sense. I can't implicitly associate a js file with a form, but rather have to specify the association. I think that http://www.symfony-project.org/more-with-symfony/1_4/en/05-Custom-Widgets-and-Validatorswill also be helpful documentation. - Michael On Sun, Apr 11, 2010

[symfony-users] Widgets and Validators

2010-04-12 Thread DEEPAK BHATIA
Hi, I have created a form using the below widget and validator. I am not able to validate the maximum length of the input text type. The example shows to bind the form first and then do validation. Please me in resolving the same. Thanks Deepak ?php class LoginForm extends sfForm { public

[symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-12 Thread Tom Ptacnik
I think there is no problem of checking subdomain from sfUser. I think for checking subdomain you only need to have a request object - I think it has a host attribute. Something about subdomains is here

[symfony-users] Re: Disable checkbox without loosing value?

2010-04-12 Thread Tom Ptacnik
But it's a really usefull function and maybe it should be in the core. On 8 dub, 11:45, axel at axel.zu...@gmail.com wrote: overwriting the doBind works for me but it's an ugly solution - other frameworks use checkbox widgets with hidden fields to solve this problem, would be nice for symfony

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Thanks Dennis, awesome feedback! On Mon, Apr 12, 2010 at 5:53 PM, Richard U richard@gmail.com wrote: Dennis thats the function if you want to have a look at it...        public function executeIndex(sfWebRequest $request) {                ini_set('memory_limit','512M');                

[symfony-users] Re: Custom template and backend generator

2010-04-12 Thread Tom Ptacnik
The decorator customization for forms won't work (when you use admin generator) because generator templates for forms don't use echo $form, but they are more customized... So you have to look into cache folder and copy this templates into your project and customize them there (like vatson wrote).

Re: [symfony-users] Re: Disable checkbox without loosing value?

2010-04-12 Thread Stéphane
Hi, When I disable a widget in a form used in the edit action, I also disable the same widget in the form in the update action. Then no need to overload processForm or addind updateXColumn. Cheers Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-12 Thread DigitalBase
Leon, i am trying out your sfGrid plugin and ran into few small issues where do you want us to report problems/bugs ? On Apr 11, 10:53 pm, Leon van der Ree l...@fun4me.demon.nl wrote: Today I will provide a tutorial, setting up a (propel-based) playground with some best practices I came up

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Dennis Benkert
Ok, just to clarify some things. I do this in my spare time (as most of the people on this mailing list). Having this said you may realize that I cannot (and will not) give you feedback a few minutes after you replied to my mail. If you might take a look at other threads on this mailing list other

[symfony-users] Re: How would you reverse the notnull:true in a schema of a plugin?

2010-04-12 Thread Javier Garcia
Just using 'doctrine:build --all --and-load' in 1.3. Javi On Apr 11, 10:12 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, it doesn't work because i'm using sf 1.2. Is there any way to operate schemas overwriting in sf 1.2 o 1.3? Javi On Apr 9, 9:55 pm, Javier Garcia

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Timmipetit
A ran into memory issues today when I had to modify every record in a table after a Doctrine Migration. The problem is that PHP doesn't decrease the reference count of a child/parent object, and therefore doesn't free the memory. The problem is described http://paul-m-jones.com/archives/262 and

[symfony-users] Re: Symfony 1.4 Switching among multiple databases

2010-04-12 Thread MP
Hello, I sent you an answer last week but for some reason the message was not well posted, and I didn't realized. Anyway, I post it now again: If I have understood your answer correctly, the solution would be that, instead of creating the connections dynamically, I would have to set all of them

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Alan Bem
Hi Richard Model::clearInstancePool() is not only mechanism that tries to solve memory leaks issue in Propel - check this out,http://bugfeatures.com/blog/comments.php?y=09m=08entry=entry090809-055809#entry090809-055809_comment090809-134908 Also, you should take into consideration manually

Re: [symfony-users] Re: sfValidatorDoctrineUnique doesn't work when only defined in BaseForm?

2010-04-12 Thread Alan Bem
Can you put somewhere code of those classes? Alan On Mon, Apr 12, 2010 at 5:00 AM, godbout guillaume.lecler...@gmail.comwrote: Hi Alan, Obviously I wasn't really awake that day... The form is SubscriberForm (not NewsletterForm) and it extends BaseSubscriberForm. I had to copy/paste the

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Tony Piper
Just to chip in with another possible cause: I see you're doing all of this in a controller (and others have talked about whether that's a good idea). Have you got the web debug toolbar enabled? If so, it could be keeping a log of all DB queries executed in your action. I had something similar

[symfony-users] sfDoctrineGuardPlugin: after build-all-reload password is not encrypted

2010-04-12 Thread Javier Garcia
Hi, just that. Any idea? -- Javi Ubuntu 8.04 -- 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

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
Ok guys... thanks for your patience with me... Don't know if you guys had a chance to check out the code i pasted but if you didn't i am already doing most of the things stated in the replays... and i really think that this is the a php issue... not symfony/propel issue.. Having said that... i

[symfony-users] Best practice: joining two templates of two plugins

2010-04-12 Thread Javier Garcia
Hi, i have the a login (sfDoctrineGuardPlugin) and a signin (sfDoctrineGuardExtraPlugin) form. Any advice to join them in the same template? Regards -- Javi Ubuntu 8.04 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] issue with doctrine inheritance!!

2010-04-12 Thread No mires mi nick
Hello, I have a doctrine schema with four tables extending from a table named Proposition with a lot of fields, making the column_aggregation inheritance not available by performance reasons, and over all for validations and mainteinance causes... I tried the concrete inheritance, and

[symfony-users] Handle form error in the action

2010-04-12 Thread WallTearer
Hello guys. I have symfony 1.4 with Doctrine. Basically, in my form I need to make some specific validation upon several fields. And in some cases (when these specific form errors happen) module's action should perform necessary tasks. So I'm wondering how can I know that specific error

[symfony-users] Time schedule of an action

2010-04-12 Thread Dss
Hello dear all! Is there a way to make a Symfony 1.4 action of a module to occur in a time schedule? I am running linux OS behind. Many thanks for the support! Take care! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: Best practice: joining two templates of two plugins

2010-04-12 Thread Javier Garcia
Well I forgot i can copied the two modules in the frontend folder... Javi On Apr 12, 2:35 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i have the a login (sfDoctrineGuardPlugin) and a signin (sfDoctrineGuardExtraPlugin) form. Any advice to join them in the same template? Regards

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-12 Thread E_lexy
Leon, I just checked out all required plugins to generate a grid. Using your old sfGridExtjs3plugin, i get inheritance errors. it seems the sfGrid class variables cannot be reached by any subclass (private). When I change them to 'protected' the subclasses are allowed access and all works fine.

[symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Tony Piper
Unless you absolutely require the upload to be processed with the user present I would handle loading this data via a background task, so I can split it up into as small chunks as I like/need without annoying the user; What if they want to upload 50,000 records? What happens if their browser dies

[symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-12 Thread Phil Moorhouse
This thread: http://groups.google.com/group/symfony-users/browse_thread/thread/6110d23b5879501a/9cf0c80fd94142fd appears to suggest that it works fine with all symfony 1.x versions. On Apr 12, 2:22 pm, Phil Moorhouse moorhouse.p...@googlemail.com wrote: We do something very similar using the

Re: [symfony-users] Re: memory leaks... just keep on leaking

2010-04-12 Thread Richard U
That sounds ideal, but i think in my situation the user would most likely be waiting at the screen... i guess your design can still be applied in the same way with some ajax displaying to the user the processing as it proceeds... On Mon, Apr 12, 2010 at 11:16 PM, Tony Piper tpi...@tpiper.com

Re: [symfony-users] Time schedule of an action

2010-04-12 Thread Richard U
I would put the action in a task... and then setup a cron for it... On Mon, Apr 12, 2010 at 5:21 PM, Dss dd...@lexis.gr wrote: Hello dear all! Is there a way to make a Symfony 1.4 action of a module to occur in a time schedule? I am running linux OS behind. Many thanks for the support! Take

[symfony-users] Re: apostrophePlugin and slot type actions

2010-04-12 Thread Tom Boutell
I know you discovered the apostrophenow list and moved on past this question on your own, but in case others are wondering: there is a thorough discussion of this topic here... http://trac.apostrophenow.org/wiki/ManualDevelopersGuide -- If you want to report a vulnerability issue on symfony,

[symfony-users] How to set a default database connection for a plugin sfDoctrineGuardPlugin or for a project

2010-04-12 Thread Tom Ptacnik
Hi, Till today I've been using one database connection and everything was fine. Today I created a second connection The problem is that the sfDoctrineGuarPlugin want to use a second connection(cash) instead of the first one (doctrine) Can I set a default database connection for a project? Can

[symfony-users] factories.yml configuration for Swift_FailoverTransport

2010-04-12 Thread David
I'm trying to setup the mailer for my Symfony project to use the Swift_FailoverTransport to allow Swift to failover to a second SMTP server if the first SMTP server does not connect. I can't hover figure out how I would setup the configuration parameters in factories.yml to properly configure the

Re: [symfony-users] Re: apostrophePlugin and slot type actions

2010-04-12 Thread Stéphane
Hi, Thanks for the link, this is the first one I looked at :) Anyway, for testing purpose, I had to modify the homeTemplate in a/templates to add my new type in the first area. After this I was able to add a slot of my own type :) I think this could be added to the wiki (I didn't as I wasnt

[symfony-users] help_language

2010-04-12 Thread safa boubekri
hello how can i change the language of my project from english to an onther language 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

[symfony-users] dont display : filter_backend

2010-04-12 Thread safa boubekri
hello i want to khow how to hide the forms of filters in the backend thank you very much -- 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] [Doctrine, Symfony 1.1 and 1.4] Problem with generating forms/classes from YAML file in plugin

2010-04-12 Thread Jo Carter
I have a bizarre problem with a YAML file creating two copies of a Plugin class (one in the Plugin, and one in the project). It's only some tables in the YAML file, not all. The YAML file is as follows: (all line endings are UNIX) assetImage: # This one works fine columns: id:

[symfony-users] Re

2010-04-12 Thread milez
Just unset the fields directly on the embedded form, same syntax. -- 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] A module with i18n, Nested Set and an ImageCollection. Is this ok?

2010-04-12 Thread Gustavo Adrian
Hi everyone. I want to create a module for Categories. Every category has 1 or more images. The i18n fields are: title and description. Basically, I have in CategoriesForm.class.php (I won't put the exact script, but the essencial things just to show you my point. It would be too long if I put the

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-12 Thread Saganxis
Hi, maybe you could get some ideas from the sympal DataGrid Plugin. Here is the code http://redmine.sympalphp.org/projects/sympal/repository/revisions/master/show/lib/plugins/sfSympalDataGridPlugin here the docs http://www.sympalphp.org/documentation/1_0/book/data-grid/en On Apr 12, 10:11 am,

[symfony-users] error with the file() command

2010-04-12 Thread kim
hi, i'm trying to ewport pictures as a zip file. This works for local pictures but from the moment on i try to use it on pictures from the server (or other sites) it stops working and this is because the file() command doesn't work on url's with me? after a minute my apache crashes When i look

[symfony-users] Re: A module with i18n, Nested Set and an ImageCollection. Is this ok?

2010-04-12 Thread Gustavo Adrian
I have another quick question about what I've posted. In the model of de record, let's say the model Image following my last post.. I need to override the save function to add the logic to generate thumbnails and to delete files if needed. Let's say that my function is the one that posted before:

[symfony-users] Re: Action xx/xx does not exist.

2010-04-12 Thread Omar El Mazny
stupid me thank you !! sorry about that !! On Apr 10, 11:08 am, Gábor Fási maerl...@gmail.com wrote: These functions need to be public, you made it protected. On Fri, Apr 9, 2010 at 17:23, Omar El Mazny omar.elma...@gmail.com wrote: i followed symfony rules i wanted to creat my own function

Re: [symfony-users] dont display : filter_backend

2010-04-12 Thread Alan Bem
In generator.yml config: filter: class: false On Mon, Apr 12, 2010 at 4:56 PM, safa boubekri boubekri.s...@gmail.comwrote: hello i want to khow how to hide the forms of filters in the backend thank you very much -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-12 Thread Tom Haskins-Vaughan
Thanks, Phil. I'll check that out On Mon, Apr 12, 2010 at 9:29 AM, Phil Moorhouse moorhouse.p...@googlemail.com wrote: This thread: http://groups.google.com/group/symfony-users/browse_thread/thread/6110d23b5879501a/9cf0c80fd94142fd appears to suggest that it works fine with all symfony 1.x

Re: [symfony-users] help_language

2010-04-12 Thread Tom Haskins-Vaughan
# apps/frontend/config/settings.yml all: .settings: default_culture: it_IT http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19 On Mon, Apr 12, 2010 at 10:42 AM, safa boubekri boubekri.s...@gmail.com wrote: hello  how can i  change the language of my project from english to an

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-12 Thread Leon van der Ree
Hi Alex, I think you are using the wrong versions of the plugins Please check out the correct branches, see the externals I provided to get the overview: plugins/sfPropel15Plugin http://svn.symfony-project.com/plugins/sfPropel15Plugin/trunk plugins/sfPropelObjectPathBehaviorPlugin

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-12 Thread Leon van der Ree
Hi Saganxis, Even though the code-style of the SympalGrid is quiet different from sfGrid and the SympalGrid is also extremely coupled to Doctrine (which I think is a pity since it is limiting the possible use-cases), I do like the way templates and especially partials are being used to render the

[symfony-users] Re: Handle form error in the action

2010-04-12 Thread Richtermeister
Hey man, I know what you mean, for example - I have a checkout form that uses authorize.net to validate a credit card, but I don't want to trigger the validation until the basic for validation passes. The way I go about it is override the doBind method to first call the parent::doBind method, and

Re: [symfony-users] dont display : filter_backend

2010-04-12 Thread safa boubekri
Thank you very much -- 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

[symfony-users] Symfony-NYC Meetup Group meeting again this Wednesday 4/14

2010-04-12 Thread isleshocky77
I know this is now probably short notice; but I figured I would post here that the Symfony-NYC Meetup group will be meeting again this week to discuss XDebug and Symfony. For anyone who is in the New York City area please check out the event page at

[symfony-users] Re: Handle form error in the action

2010-04-12 Thread WallTearer
Thanks a lot, Daniel, but in my case I have to trigger different functions depending on the results of validation. Lets say I have 2 fields: field_1 and field_2. If field_1 passed validation and field_2 didn't - action needs to trigger function a() and show default template. If field_2 didn't pass

Re: [symfony-users] help_language

2010-04-12 Thread safa boubekri
Thank you a lot -- 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

[symfony-users] Re: sfValidatorDoctrineUnique doesn't work when only defined in BaseForm?

2010-04-12 Thread godbout
Sure. // BaseSubscriberForm.class.php -- abstract class BaseSubscriberForm extends BaseFormDoctrine { public function setup() { $this-setWidgets(array( 'id' = new sfWidgetFormInputHidden(), 'email' = new sfWidgetFormInputText(),

[symfony-users] symfony 1.2 db connections timing out

2010-04-12 Thread Slavka
Hey guys... im getting the SQLSTATE[HY000]: General error: 2006 MySQL server has gone away In my action i create the required db connections as such $connection_cdb = Propel::getConnection('propel'); $connection_stats = Propel::getConnection('cdb_stats'); I then read a big csv file from the

[symfony-users] Re: Please Help! Stable version of Symphony in 2009

2010-04-12 Thread User
Thank you for the information, but do you know the dates in which the three versions actually became stable frameworks? On Apr 12, 12:28 am, Gábor Fási maerl...@gmail.com wrote: If you mean Symphony, the CMS, check their site:http://symphony-cms.com/ If you mean symfony, the PHP framework,

[symfony-users] ckWebServicePlugin and WSDL documentation tag

2010-04-12 Thread Francisco
Hello, i have somes actions as webservices (with ckWebServicePlugin). I need to include documentation tag in wsdl generated file, but it doesn't work it is an example of htdoc of webservice action: /** * Devuelve coleccion de carteleras de la semana para un canal * *