[symfony-users] Re: sfValidatorChoice with default Value?!

2009-05-19 Thread David Ashwood
Take a look at: http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfval idatorcallback -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of jmaicher Sent: 19 May 2009 17:38 To: symfony users Cc:

[symfony-users] Re: i can't generate a module

2009-05-19 Thread David Ashwood
Oops - wrong reply :s -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of David Ashwood Sent: 20 May 2009 00:34 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: i can't generate a module Checkout: http

[symfony-users] Re: Best Practice for sfDoctrineGuardPlugin - how to tie other tables with user-related content?

2009-05-19 Thread David Ashwood
Checkout: http://www.symfony-project.org/plugins/sfDoctrineApplyPlugin It's a profile plugin that's extendable with instructions on how to hook itto sfDoctrineGuardPlugin -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of halla

[symfony-users] Re: Best Practice for sfDoctrineGuardPlugin - how to tie other tables with user-related content?

2009-05-19 Thread David Ashwood
Subject: [symfony-users] Re: Best Practice for sfDoctrineGuardPlugin - how to tie other tables with user-related content? Hi David, I'm afraid your answer won't help me. Checkout:http://www.symfony-project.org/plugins/sfDoctrineApplyPlugin It's a profile plugin that's extendable

[symfony-users] sfSympalPlugin

2009-05-17 Thread David Ashwood
With the latest version of Sympal - I've started seeing the following in the error log and blank pages being shown when viewing the site: [Sun May 17 12:44:29 2009] [error] [client 87.221.255.175] SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are

[symfony-users] Re: sfSympalPlugin

2009-05-17 Thread David Ashwood
to set this via the databases.yml? From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of David Ashwood Sent: 17 May 2009 14:47 To: symfony-users@googlegroups.com Subject: [symfony-users] sfSympalPlugin With the latest version of Sympal - I've started

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
There's a couple of places that tend to cause confusion when people try to override Symfony plugin functionality and the autoloader doesn't help when you're trying to test things out. You can generally create your own version of any class - if you put the new version in the right place and if

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
, 5:23 am, David Ashwood da...@inspiredthinking.co.uk wrote: There's a couple of places that tend to cause confusion when people try to override Symfony plugin functionality and the autoloader doesn't help when you're trying to test things out. You can generally create your own version of any

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere? On May 15, 5:23 am, David Ashwood da...@inspiredthinking.co.uk wrote:  Most people append the referrer to the URL as a parameter for this because unless you're careful you'll lose

[symfony-users] Re: Talking about performance, clustering etc.

2009-05-14 Thread David Ashwood
I've used ipvs (http://www.linuxvirtualserver.org/software/ipvs.html) effectively on a few sites for clients - it's more scalable than using reverse proxies. It's a handy fast and efficient way to: * load balance * manage traffic to the cluster (allowing for transparently bringing

[symfony-users] Re: Weird 500 error

2009-05-14 Thread David Ashwood
Look at your php/apache logs and turn on symfony logging for the production environment. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of HAUSa Sent: 14 May 2009 10:49 To: symfony users Subject: [symfony-users] Weird 500 error

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread David Ashwood
Heh J From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Thomas Rabaix Sent: 14 May 2009 10:53 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: Is there a better way to find a related record other than looping? Hello, If there is

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread David Ashwood
Depending on how the data is organised you can try: $entry-MetaData[EntryMeta::Superscript]['value'] or $entry-MetaData[EntryMeta::Superscript]-value -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of joshuacoady Sent:

[symfony-users] symfony at the sourceforge community choice awards

2009-05-14 Thread David Herrmann
://sourceforge.net/images/cca/cca_nominate.png David --~--~-~--~~~---~--~~ 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 from this group, send email

[symfony-users] Re: How to configure sfGuard?

2009-05-14 Thread David Ashwood
The second of your questions can only be done by using DbFinder I think (http://www.symfony-project.org/plugins/DbFinderPlugin) - checkout the section Alternative Framework Components. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
Hi Josh, The coffee is still sinking in - your schema appears to be incomplete - you reference Dictionary but it doesn't appear to exist (at least in the snippet you've provided). -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
collision because it doesnt like the foreignAlias of Data .. if I change that to Data2 it works as expected. On May 13, 2:06 am, David Ashwood da...@inspiredthinking.co.uk wrote: Hi Josh, The coffee is still sinking in - your schema appears to be incomplete - you reference Dictionary

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
of naming collision because it doesnt like the foreignAlias of Data .. if I change that to Data2 it works as expected. On May 13, 2:06 am, David Ashwood da...@inspiredthinking.co.uk wrote: Hi Josh, The coffee is still sinking in - your schema appears to be incomplete - you reference Dictionary

[symfony-users] Re: DbFinder returning too many columns when orderBy non-PK column

2009-05-13 Thread David Ashwood
Try using an alias with the column and then ordering by the alias. The reason for the uppercase version is to allow for a case-insensitive sort. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Phil Moorhouse Sent: 13 May 2009

[symfony-users] Re: Google Accounts, OAuth, OpenID, AuthSub....What to, how to...

2009-05-13 Thread David Ashwood
There's a rather cool OpenID plugin for SF 1.2 http://www.symfony-project.org/plugins/sfPHPOpenIdPlugin I've not tried it but have been waiting for an project to come along that will give me an excuse to. -Original Message- From: symfony-users@googlegroups.com

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-13 Thread David Ashwood
Consider setting a CI server when branches are merged that puts the migrations into the correct sequence. With this you can setup a CI server that takes a branch when a tag has been applied (via a hook) and then performs some tests against trunk. You can also implement tighter controls to

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
If you're looking to ensure that the submitted HTML is conformant (ie matching start/end tags, etc) then I usually just run it through tidy and then show it back to them on submit - so they can visually check it themselves to see if it's what they wanted. -Original Message- From:

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
Sent: 14 May 2009 00:25 To: symfony users Subject: [symfony-users] Re: Easiest way to filter HTML inputs Finally I customized my settings.yml : escaping_strategy: on escaping_method:ESC_ENTITIES Works well ! -- Adrien On 14 mai, 00:22, David Ashwood da...@inspiredthinking.co.uk

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
That's pretty cool - and there even appears to be a plugin for it: http://www.symfony-project.org/plugins/sfXssSafePlugin -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Brian Racer Sent: 14 May 2009 00:46 To:

[symfony-users] Re: Zend Search scalability

2009-05-11 Thread David Ashwood
appreciate any feedback. Regards. Thibault. On 10 mai, 14:00, David Ashwood da...@inspiredthinking.co.uk wrote: Take a look here for optimising the index that may help:http://framework.zend.com/manual/en/zend.search.lucene.best-practice... . nd.search.lucene.best-practice.indexing-performance I

[symfony-users] Re: Propel:insert-sql for sqlite fails with [wrapped: could not find driver] error.

2009-05-10 Thread David Ashwood
Wow - one of the most comprehensive set of steps I've seen for a while! Regarding your problem - try using this syntax in databases.yml for the dsn: sqlite:///c:/full/windows/path/to/file.db -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]

[symfony-users] Re: Using SWFUpload to upload muiltple files to symfony 1.2

2009-05-10 Thread David Ashwood
The security issue is mitigated somewhat if you use CRSF in conjunction with what you described and it'll help prevent replay attacks. Just add the crsf field to the post params. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread David Ashwood
Wotcha Sid, If you include the userID in the route/URL for the profile then it'll have it's own cache element. There's some detail here (http://www.symfony-project.org/book/1_2/12-Caching) -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread David Ashwood
Pages nice, now all I have to do is find a way to force the 'reset' of it... On Sun, May 10, 2009 at 14:27, David Ashwood da...@inspiredthinking.co.uk wrote: Wotcha Sid, If you include the userID in the route/URL for the profile then it'll have it's own cache element. There's some detail

[symfony-users] Re: Using SWFUpload to upload muiltple files to symfony 1.2

2009-05-09 Thread David Ashwood
There's a number of issues with flash and cookies. Depending on the version, browser, routing and the widget - flash won't pick up the current session token. There's a discussion about it on the forums from a while ago. I was looking for a fancy upload widget the other day to replace the one

[symfony-users] Re: Symfony 1.2 Swiftmailer

2009-05-09 Thread David Ashwood
I've been busy with some client projects - so if you've solved your problem - ignore me :) There's a post on the fourms about how to use the latest version of swift mailer here: http://forum.symfony-project.org/index.php?t=rviewgoto=2#msg_2 -Original Message- From:

[symfony-users] Re: need advice: am switching from a Linux to a Windows development environment

2009-05-09 Thread David Ashwood
I store all my projects inside a dev folder - with a sub folder for each project. I also have a folder here for symfony and another for downloaded plugins (to easily handle plugin install without needing Pear). In the Symfony folder I have a folder for each version of Symfony I play with and do

[symfony-users] Dev Tools hosting: Aptana

2009-05-09 Thread David Ashwood
Every few projects for clients I usually have some odd ball requirement in the project spec which leads me to spending half a day researching the options and working out the cost/benefit for some dreamed up need they have after reading some Web.20 site or blog. This week was no exception for a

[symfony-users] Re: Forcing routing to be only characters and numbers

2009-05-09 Thread David Ashwood
In the routing requirements you can specify a regular expression for the pattern: job_show_user: url: /job/:company/:location/:id/:position param: { module: job, action: show } requirements: id: \d+ From: http://www.symfony-project.org/jobeet/1_2/Doctrine/en/05#chapter_05_requirem

[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread David Ashwood
Not much help to your project but you can do it with the Timestampable behaviour in Doctrine. BlogPost: actAs: # ... Timestampable: created: name: created_date type: timestamp From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]

[symfony-users] Re: symfony 1.2 with Doctrine 1.1?

2009-05-03 Thread David Ashwood
The main thing missing is the DB Web Debug bar when using Doctrine 1.1 -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Keith Sent: 03 May 2009 04:56 To: symfony users Subject: [symfony-users] Re: symfony 1.2 with Doctrine 1.1?

[symfony-users] Re: Symfony and JS - prototype or jquery?

2009-05-03 Thread David Ashwood
Stick with one or the other - while jQuery and Prototype can be made to work together - they both want the $ prototype and you can end up with conflicts if you don't put jQuery into compat mode and change/use all jQuery usage to use jQuery rather than $. Most jQuery plugins are safe - so it's

[symfony-users] Re: Symfony and JS - prototype or jquery?

2009-05-03 Thread David Ashwood
wanna learn too use jQuery too :D On Sun, May 3, 2009 at 12:52, David Ashwood da...@inspiredthinking.co.uk wrote: Stick with one or the other - while jQuery and Prototype can be made to work together - they both want the $ prototype and you can end up with conflicts if you don't put jQuery

[symfony-users] Suggestion: Site Search

2009-05-02 Thread David Ashwood
Wotcha guys, Any chance of getting some enhancements done to the Symfony site regarding searches? The browser search provider is great if you need to look up something specific and its related to a class but both the search provider the site search tend to come up with nothing when it's related

[symfony-users] Re: pear install symfony/symfony fails

2009-05-02 Thread David Ashwood
Try first: pear upgrade PEAR pear upgrade Pear installs aren't always the most uptodate. Although personally I usually follow something like: mkdir -p /home/sfprojects/projectName cd /home/sfprojects/projectName mkdir -p lib/vendor cd lib/vendor svn export

[symfony-users] DBFinder

2009-05-02 Thread David Ashwood
Any chance of getting DBFinder as core plugin with 1.3? It would help in many ways - consolidate plugins to a core syntax promote reuse, simplify helping users, etc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Problem with DSN, (port)

2009-05-01 Thread David Ashwood
From (http://es.php.net/manual/en/pdo.connections.php) it appears you need to use 127.0.0.1 rather than localhost if you're going to change the port used. With mysql you should also ensure that the user has rights to access via 127.0.0.1 rather than localhost. -Original Message- From:

[symfony-users] Re: Best practice for debugging ?

2009-05-01 Thread David Ashwood
You can download the Zend Eclipse IDE debugger for free also (http://www.zend.com/en/community/pdt). - while it doesn't have all the bells and whistles of Zend Server (it also doesn't have the price tag). The last time I used it (2-3 years ago) it was a little flaky - but I started using it

[symfony-users] Re: Zend serch and sorting by score

2009-05-01 Thread David Ashwood
The simple way is to just: return array('hits'=$hits, 'query'=$query); And let the upstream code handle the process. I've not tried it in a few years but you can also do it via a join - the simplest approach in Symfony would be to use DBFinder. In essence $hits needs to represent a virtual

[symfony-users] Re: Best practice for debugging ?

2009-05-01 Thread David Ashwood
any uncaught exceptions and displays the full stack trace :) If you're using any kind of 3rd party library, it's a handy way to insulate your application from bad exception handling in a 3rd party library. On 1 May 2009, at 14:52, David Ashwood wrote: It varies but generally

[symfony-users] Re: Best practice for debugging ?

2009-05-01 Thread David Ashwood
, David Ashwood wrote: Talking about sfErrorHandlerPlugin - does it handle symfony cli exceptions? I have a weird problem at the moment and I'm wondering it will help. I'm converting an old plugin from using Propel to DBFinder/Doctrine. Now the changes are only half done the schema appears

[symfony-users] Re: Best practice for debugging ?

2009-05-01 Thread David Ashwood
it and see - let me know :) On 1 May 2009, at 16:22, David Ashwood wrote: Talking about sfErrorHandlerPlugin - does it handle symfony cli exceptions? I have a weird problem at the moment and I'm wondering it will help. I'm converting an old plugin from using Propel to DBFinder

[symfony-users] Re: Best practice for debugging ?

2009-05-01 Thread David Ashwood
about that - I wasn't aware it was up to the error handler to deal with @ operator On 1 May 2009, at 16:49, David Ashwood wrote: Although I'm now seeing an exception when using the browser that I don't think should be shown. 500 | Internal Server Error | sfLegacyErrorException unlink(D

[symfony-users] Re: Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread David Ashwood
This happens quite a lot - the workaround is to download the package manually and then use: symfony plugin:install path to package -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of HiDDeN Sent: 30 April 2009 21:51 To: symfony

[symfony-users] Re: Web Mozarts - New symfony blog

2009-04-08 Thread David Herrmann
the feedback to your blog runs much faster and allows for discussions if they suddenly come up. David --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Are there anyway to avoid using PDO in symfony1.2

2009-04-08 Thread David at Artefactual
that have had problems with the base requirements for symfony - in particular the PHP version and the PDO library. Regards, David Juhasz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: Doctrine UNION function or similar solution

2009-03-25 Thread David Herrmann
but also much more error prone. David --~--~-~--~~~---~--~~ 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 from this group, send email

[symfony-users] Re: Best practice for multiple dynamic databases using symfony and Doctrine

2009-03-24 Thread David Herrmann
can tell us how to modifiy a connection to use a specific database name during run-time? David On Feb 12, 11:07 am, David Herrmann d...@okto.tv wrote: I'm currently planning a large project where I need a quite tricky setup: There is a main database holding customers and business cases. Each

[symfony-users] Re: Best practice for multiple dynamic databases using symfony and Doctrine

2009-03-24 Thread David Herrmann
I'll post a snippet or write a blog post (might still be a few weeks until then). Thanks David --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread David Landgren
berth. This is just straight Lucene API work. Thanks, David --~--~-~--~~~---~--~~ 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 from

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread David Landgren
Thomas Rabaix wrote: Yes I was. What didn't work with sfLucene ? I didn't even try. I ran into sufficient grief with other plugins that didn't work with 1.2 and/or not well documented that I didn't bother. The code in the Jobeet tute is easy enough to figure out and adapt. David On Wed

[symfony-users] Re: Frontend backend - one login form

2009-03-03 Thread David Herrmann
login and redirection to the appropriate frontend or backend controllers? From a security point of view this would also be elegant: then you can require authentication and/or credentials on all frontend and backend apps and make the login app open to visitors. David

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread David Herrmann
. David --~--~-~--~~~---~--~~ 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 from this group, send email to symfony-users+unsubscr

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread David Landgren
David Herrmann wrote: Lee Bolding schrieb: Simple question, for a rather trivial piece of functionality, but it's all in the details... How do you store peoples names in the database? As in, do you upper/lower case firstname and lastname or ucfirst etc? why? No, i don't do any

[symfony-users] Re: Let's be more dynamic with sfForm

2009-02-24 Thread David Herrmann
that is working fine. And after all sparing an unneeded indentation level is always a good thing! Looking forward to seeing more about this, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group

[symfony-users] Re: Class 'sfGuardSecurityUser' not found

2009-02-24 Thread David Herrmann
/user/sfGuardSecurityUser.class.php file. David --~--~-~--~~~---~--~~ 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 from this group

[symfony-users] Re: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread David Herrmann
it working for creating fully dynamic forms from scratch. Sounds interesting, although I miss a typical use case at the moment (perhaps you can give me one). I think I'll have to breed a little over this... David --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: Symfony/Doctrine/Forms with EAV model?

2009-02-20 Thread David Herrmann
. David --~--~-~--~~~---~--~~ 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 from this group, send email to symfony-users+unsubscr

[symfony-users] Re: Best practices and techniques for form fields not saved to database

2009-02-18 Thread David Herrmann
= null) { unset($taintedValues['province'], $taintedValues['state']) parent::bind($taintedValues, $taintedFiles); } Hope this works, I've used something similar but in another context. David --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: using i18n outside template

2009-02-17 Thread David Herrmann
Dincho Todorov schrieb: Or you can directly load the helper anywhere: sfLoader::loadHelpers(array('I18N')); and then use the __() function/helper I missed that one, thanks! David --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] Re: extending doctrine schema with SQL views

2009-02-17 Thread David Herrmann
code gets executed after all the other SQL statements (so all tables exist). Symfony will order the SQL files by name, so you can use the file name to change the order. Hope that helps David --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: using i18n outside template

2009-02-16 Thread David Herrmann
.') ) Of course it might be better to place as many texts as possible in the view layer, but sometimes this is the only valid option. David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Best practice for multiple dynamic databases using symfony and Doctrine

2009-02-12 Thread David Herrmann
, David --~--~-~--~~~---~--~~ 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 from this group, send email to symfony-users+unsubscr

[symfony-users] Re: Propel sum and group by

2009-02-05 Thread David Landgren
for this sum'); You could do the addition in the template, but that would violate MVC principles. David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony

[symfony-users] security filter (sfDoctrineGuard)

2009-02-02 Thread David Deller
Per instructions in the sfDoctrineGuard README, I am attempting to enable the sfGuardBasicSecurityFilter. However, I find it is seemingly never executed. This does not work: security: class: sfGuardBasicSecurityFilter This works: security: enabled: off my_filter: class:

[symfony-users] Re: Enable caching despite GET parameter?

2009-01-21 Thread David Deller
On Jan 21, 2009, at 4:49 AM, Fabien Potencier wrote: The sfViewCacheManager class checks the $_GET and $_POST global variables: Thanks... I got this working with a simple unset($_GET['my_param']). David --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: SF.1.2 Admin Generator-Two modules in one

2009-01-21 Thread David Brewer
Is this symfony 1.2? If so, you can customize the form for your model to handle this. In the configure method for your form, you can add widgets and validators for the address-related fields. Then, you can override the 'doSave()' method to do custom handling of your extra fields. You'll also

[symfony-users] Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread David Brewer
a listener to the manager? I thought that the listener would fire for matching events on any model. Thanks for any clarification on this issue. I'm looking forward to mastering listeners as I can see that they will be incredibly handy. David Brewer

[symfony-users] Re: Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread David Brewer
PM, David Brewer david.bre...@gmail.com wrote: I'm starting to try to wrap my head around using Doctrine listeners in the context of a symfony application, and I'm encountering some confusion that I was hoping someone out there might be able to help me clear up. The rough outline of what I'm

[symfony-users] Re: Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread David Brewer
using the admin console? :-) On Wed, Jan 21, 2009 at 5:10 PM, David Brewer david.bre...@gmail.com wrote: Followup: it does appear that the record listener I created works so long as I add it directly to a record. So, the super-shortened version of this question is: how can I globally attach

[symfony-users] Re: Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread David Brewer
Filed a doctrine ticket on this issue: http://trac.doctrine-project.org/ticket/1847 On Wed, Jan 21, 2009 at 6:18 PM, David Brewer david.bre...@gmail.com wrote: Followup #2: I think I've figured out what the hangup is. I added some logging to Doctrine_Configurable class where it gets

[symfony-users] Re: Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread David Brewer
the cache That seems to be working for now, if not exactly elegant! On Wed, Jan 21, 2009 at 7:57 PM, jukea jkea...@gmail.com wrote: David, That's kind of ugly, but I'd say if you implement an override of processForm, executeDelete and executeBatchDelete for each of your module, that would

[symfony-users] Can sfSimpleForumPlugin work on 1.2.2?

2009-01-20 Thread David Landgren
tarball but I am coming to the conclusion that this is a boilerplate message and there is no help. So, how can I override the message (since the installation appears to halt at this point) and/or what do I need to do to get it to work on 1.2.2? Thanks, David

[symfony-users] Re: Can sfSimpleForumPlugin work on 1.2.2?

2009-01-20 Thread David Landgren
start a new project today. That's not exactly true if you want to use plugins like SimpleForum or SimpleCMS. Regards, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group

[symfony-users] Enable caching despite GET parameter?

2009-01-20 Thread David Deller
My problem is that caching is not used if any GET parameter is present, but we expect high traffic from links bearing this parameter (think referral/affiliation programs, etc.) so we need caching. Quoth the Book, Chapter 12: Actions called with a POST method or with GET parameters are not

[symfony-users] Re: Can sfSimpleForumPlugin work on 1.2.2?

2009-01-20 Thread David Landgren
to be quite minor, so hopefully it won't be too hard. Thanks, David --~--~-~--~~~---~--~~ 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] Re: sfValidatorDoctrineUnique bug ?

2009-01-19 Thread David Arthur
', 'primary_key' = 'id', 'required' = true )), )) ) As i'm checking for a unique email and username, a common use case. Hope this helps, David On Jan 9, 11:42 am, tonio607 antoine.roll

[symfony-users] Seeking plugin suggestions

2009-01-16 Thread David Landgren
by sfSimpleForumPlugin. Any other ideas? Authentication: is there a plugin that deals with authentication against an OpenLDAP directory (I see there's something for AD), or do people just use standard APIs for that? Thanks, David --~--~-~--~~~---~--~~ You received this message

[symfony-users] New admin generator: getting options to widgets?

2009-01-14 Thread David Brewer
, and once in code for formatting the widget itself. Not very DRY. Any suggestions on how I can eliminate this duplication? Thanks, David Brewer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Error, bucle or not in The symfony and Doctrine book (chapter 6)

2009-01-08 Thread David Castelló
Hello! Firstly, sorry my english is no good. Url: http://www.symfony-project.org/book/doctrine/1_2/en/06-Working-With-Data Section: BlogPost hasMany Tag as Tags To ensure duplicate tags are not inserted in to the database, it suggest: [php] class TagTable extends Doctrine_Table { public

[symfony-users] Re: Best path for upgrading a doctrine-based symfony 1.1 admin console to 1.2?

2009-01-05 Thread David Brewer
Good idea: http://trac.symfony-project.org/ticket/5535 On Sat, Jan 3, 2009 at 5:35 PM, Jonathan Wage jonw...@gmail.com wrote: That would be a decision for Fabien. Add a ticket seeing what he thinks? - Jon On Sun, Dec 28, 2008 at 2:38 AM, David Brewer david.bre...@gmail.com wrote: Jon

[symfony-users] Re: New form framework: displaying non-editable fields

2008-12-28 Thread David Brewer
to see if there is any interest in this as a feature there. What do you think? Is this a use case that comes up often enough that a widget for this purpose would be useful? On Sat, Dec 27, 2008 at 3:20 PM, David Brewer david.bre...@gmail.com wrote: I sometimes need to display a value in a form

[symfony-users] Re: New form framework: displaying non-editable fields

2008-12-28 Thread David Brewer
this for 1.2, otherwise it can come earliest in 1.3 Fabian On Dec 28, 2008, at 9:34 AM, David Brewer wrote: To anyone who might be interested in how I managed this, I ended up implementing my own widget class for this purpose called sfWidgetFormPlain.class.php. It extends sfWidgetForm

[symfony-users] New form framework: displaying non-editable fields

2008-12-27 Thread David Brewer
is the preferred way to handle this situation using the new admin generator and forms framework? Thanks, David Brewer david.bre...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] sf1.2 admin generator: including label/help text on partial fields?

2008-12-21 Thread David Brewer
an alternative to partials for inserting a custom field? Note that this is a change from the sf 1.0 admin generator, where you always got the label and help text and when I didn't want the label I used css to hide it. :-) David Brewer --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Best path for upgrading a doctrine-based symfony 1.1 admin console to 1.2?

2008-12-21 Thread David Brewer
text defined in the generator.yml. Is there an option of some kind for changing this behavior? Or perhaps an alternative to partials for inserting a custom field? I guess I could define a specific widget class for these cases... is that the recommended approach? David Brewer On Fri, Dec 19, 2008

[symfony-users] Best path for upgrading a doctrine-based symfony 1.1 admin console to 1.2?

2008-12-19 Thread David Brewer
and revert to symfony 1.1 This is undoubtedly the easiest path, but I don't want to give up! Any suggestions? David Brewer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group

[symfony-users] Problem with callbacks and autoloading in sf 1.1?

2008-12-17 Thread David Brewer
Symfony 1.0 project, in progress of upgrading). Thanks, David Brewer --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Problem with callbacks and autoloading in sf 1.1?

2008-12-17 Thread David Brewer
'); $result = call_user_func_array(MyClass::MyMethod, array()); Ugly, but at least it keeps me moving forward for now. David On Wed, Dec 17, 2008 at 1:21 PM, Lee Bolding l...@leesbian.net wrote: This sounds similar to an issue I had earlier this week. It seems that if you extend a class that isn't

[symfony-users] Re: Problem with callbacks and autoloading in sf 1.1?

2008-12-17 Thread David Brewer
a standalone test outside of symfony to verify if it is a problem with php itself. - Jon On Wed, Dec 17, 2008 at 4:41 PM, David Brewer david.bre...@gmail.com wrote: I discovered that this issue can be 'fixed' (or rather, hacked around) by explicitly checking for the existence of the class before

[symfony-users] Plans for support duration for 1.2?

2008-11-12 Thread David Brewer
going to expire close to or even before 1.0's. :-) David --~--~-~--~~~---~--~~ 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 from

[symfony-users] Re: How to add multiple forms to a page?

2008-11-05 Thread David Arthur
] wrote: You can check another example here : http://www.miximum.fr/methodes-et-outils/104-mixons-des-formulaires-a... Text in french, but the code is quite straightforward. On 4 nov, 13:22, David  Arthur [EMAIL PROTECTED] wrote: Thanks Thibault, Anyone know of any good examples

[symfony-users] Re: How to add multiple forms to a page?

2008-11-03 Thread David Arthur
at a way to implement it myself in the symfony framework. Any developers have ideas on how this would be best implemented? Im currently looking at developing a subform widget. Kind Regards, David On Oct 2, 9:12 pm, Ardesco [EMAIL PROTECTED] wrote: I'm a fairly new symfony user, and I've managed

[symfony-users] Symfony performance - optimisation and testing

2008-09-29 Thread David Heath
questions for you: * have you conducted any load testing? What kind of results did you get? * any tips on how to identify the bottlenecks or sources of performance problems? * any other links to general advice? Thanks for any input you can give. David -- http://davidheath.org

[symfony-users] Re: Which IDE do you use?

2008-09-11 Thread David Brewer
I'm a big fan of Komodo IDE. On Mon, Sep 8, 2008 at 11:13 PM, Sumedh [EMAIL PROTECTED] wrote: I don't think we have a feature of poll here...? Thought would help to know what are people generally using for symfony projects... I am using Eclipse PDT so far...but it's crashing every hour

<    1   2   3   4   >