[symfony-users] Re: R: Using memcache for session storage

2011-06-01 Thread Phil Moorhouse
I see, so there is no specific sfMemcacheSessionStorage class, but I can utilize sfMemcacheCache for sessions by changing my storage option to sfCacheSessionStorage in factories.yml and specifying the class? The only thing I could find on this is here:

[symfony-users] Using memcache for session storage

2011-05-31 Thread Phil Moorhouse
With a previous sf1.0 project I used sfMemcachePlugin and it's sfMemcacheSessionStorage class for saving the session to memcache so we could share sessions across multiple hosts. I'd like to do the same thing with my current sf1.4 project but there doesn't appear to be a compatible plugin? Is

[symfony-users] Re: ysfDimensionsPlugin and cache:clear

2010-12-20 Thread Phil Moorhouse
I've added a ticket about this along with a possible patch... http://trac.symfony-project.org/ticket/9370 -- 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] Re: ysfDimensionsPlugin and cache:clear

2010-12-16 Thread Phil Moorhouse
Just to be clear it looks like this is throwing warnings on every CLI task that doesn't specify an app or env, not just cache-clear, which leads me to believe I must've missed something? Anyone else seeing this behaviour? -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] ysfDimensionsPlugin and cache:clear

2010-12-15 Thread Phil Moorhouse
I've been a user of the sf1.0 version of the ysfDimensionsPlugin for a couple of years, so I'm already a big fan. I've just tried adding it to our new sf1.4 project and every time I clear the cache I get PHP notices about undefined properties: 1. PHP Notice: Undefined property:

[symfony-users] Saving m:n relations without a form (doctrine)

2010-10-19 Thread Phil Moorhouse
Hi, I have the following schema: Artist - ArtistSession - Session Artist: columns: id: primary: true type: integer notnull: true autoincrement: true snip.../snip relations: Sessions: class: Session refClass: ArtistSession local: artist_id

[symfony-users] Re: sfDynamicFormPlugin

2010-09-20 Thread Phil Moorhouse
I have a need for this, I've got something similar but in an sf1.0 app that obviously doesn't use the form framework, but it'd be great to have a plugin to make this simple. On 19 Sep, 11:04, juro fo...@juro.at wrote: Hi, I am thinking of developing a plugin that enables an admin to create

[symfony-users] Re: Race condition with session data

2010-09-08 Thread Phil Moorhouse
completed and that A2 can load the new content.     gabriel On Sep 7, 6:04 pm, Phil Moorhouse moorhouse.p...@gmail.com wrote: Hi, I currently have an action (A1) that performs some manipulation of objects saved in the session, and then loads a view containing an iframe. The iframe loads

[symfony-users] Re: Race condition with session data

2010-09-08 Thread Phil Moorhouse
The answer is: yes - $this-getUser()-shutdown() seems to work. If anyone knows of a particular reason why this might be a bad idea, please let me know. On 8 Sep, 09:10, Phil Moorhouse moorhouse.p...@gmail.com wrote: The site needs to work with javascript disabled so unfortunately that's

[symfony-users] Race condition with session data

2010-09-07 Thread Phil Moorhouse
Hi, I currently have an action (A1) that performs some manipulation of objects saved in the session, and then loads a view containing an iframe. The iframe loads another action (A2) from the same application which relies on objects saved to the session in A1. Sometimes, particularly when

[symfony-users] Re: doctrine query help needed

2010-09-07 Thread Phil Moorhouse
Is your schema already fixed? If not, the normal way to do this would be to have m-m join tables: NewsImage [ news_id, image_id ] EducationImage [ education_id, image_id ] HealthImage [ health_id, image_id] and remove: content_id type from the ContentImage table. Then if you want all news

[symfony-users] Re: Form helper on symfony 1.4

2010-06-16 Thread Phil Moorhouse
A Gentle Introduction... is meant to be current documentation though so this should be fixed. Gustavo, please report the issue here: http://trac.symfony-project.org/newticket with type=documentation and component=form and someone with commit access to the docs will hopefully remove the bad

[symfony-users] Appending string to sfDoctrineRoute path

2010-05-10 Thread Phil Moorhouse
Is it possible to append a string to the end of a URL when using sfDoctrineRoute? i.e. where some-band-name is the slug I'd like /artist/some-band-name-tickets here's my current routing: artist_show: url: /artist/:slug class: sfDoctrineRoute param: { module: artist, action:

[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

[symfony-users] Re: How to set variables In the Global template?

2009-12-20 Thread Phil Moorhouse
This is a perfect use-case for the Dimensions plugin: http://www.symfony-project.org/plugins/ysfDimensionsPlugin It allows you to configure different stylesheets / templates for each dimension which could easily map to your clients. On Dec 17, 2:44 pm, ajit csa...@gmail.com wrote: Hi all, I

[symfony-users] Re: Call For Information Re-organization [opinions needed]

2009-09-29 Thread Phil Moorhouse
It's not just code examples though, it's more the gotchas or misunderstandings that other people have had but can then comment on to say actually, you might think this does x but it does y instead. The mod up / mod down is also a good idea so that bad examples can get buried or removed

[symfony-users] Re: Day 1 - Jobeet tutorial

2009-09-29 Thread Phil Moorhouse
Just to be clear: 1. Make sure you commit the completely empty cache / log dirs to your svn repo (best as part of your initial import of the project) - this will mean when you check out a new working copy in future that those directories definitely get created. 2. You then set an svn property

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Phil Moorhouse
Because Zend's framework is named Zend Framework whereas the Symfony framework is just known as Symfony. On Sep 23, 10:26 am, dziobacz aaabbbcccda...@gmail.com wrote: http://www.google.com/trends?q=Zend+Framework%2C+CakePHP%2C+CodeIgnit... Why if I write in google trends: Zend Framework,

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Phil Moorhouse
Ghost3D, Firstly, the reason for the move to OO forms has already been covered - it's to promote re-use and greater flexibility. This unavoidably comes with the cost of increased complexity, and I think from the answers above most people here are willing to make that trade-off. Secondly,

[symfony-users] Re: Performance optimization!HELP!!

2009-09-17 Thread Phil Moorhouse
Make sure you've read http://www.symfony-project.org/book/1_2/18-Performance - lots of good advice there. http://www.symfony-check.org/ is another useful site. In order of the biggest improvement for the least amount of effort, I'd say: 1. Install a PHP accelerator 2. Make sure your db tables

[symfony-users] Re: Caching per-user pages and security

2009-06-16 Thread Phil Moorhouse
:53, Phil Moorhouse moorhouse.p...@googlemail.com wrote: Hi, I've just recently developed an order-history section for my users, and I want to cache the action as it's quite a hefty process (xml api call to a booking server that takes a while to generate the results). Obviously I need

[symfony-users] Caching per-user pages and security

2009-06-15 Thread Phil Moorhouse
Hi, I've just recently developed an order-history section for my users, and I want to cache the action as it's quite a hefty process (xml api call to a booking server that takes a while to generate the results). Obviously I need something unique like say the user_id in the url to make sure the

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

2009-05-13 Thread Phil Moorhouse
I seem to have found what looks like a bug in DbFinder, although it's possible I'm not using it correctly so I thought i'd ask here first before submitting a ticket. When I attempt to order by a non-PK column, it adds that column a second time to the returned assoc array as an uppercase value

[symfony-users] DbFinder, how to leftJoin with Where clause

2009-05-13 Thread Phil Moorhouse
I need to reproduce the following query with DbFinder. i'm using the results to build a list of checkboxes that will already be checked if they have a row in the relations table. SELECT et.event_type_id, et.name, etpni.news_item_id AS selected FROM event_types et LEFT JOIN

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

2009-05-13 Thread Phil Moorhouse
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 12:39 To: symfony users Subject: [symfony-users] DbFinder returning too many columns when

[symfony-users] Re: composite unique indices

2009-04-15 Thread Phil Moorhouse
://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layerand look for Indexes. On 14 avr, 17:09, Phil Moorhouse moorhouse.p...@googlemail.com wrote: Hi, I have a table with the fields username and affiliate_id I need to specify the pairing as unique, i.e. username | affiliate_id bob_smith

[symfony-users] composite unique indices

2009-04-14 Thread Phil Moorhouse
Hi, I have a table with the fields username and affiliate_id I need to specify the pairing as unique, i.e. username | affiliate_id bob_smith, 1 bob_smith, 2 frank_thomas, 3 jessica_murphy, 2 are allowed, but a second bob_smith, 2 would not be. How do I format this in schema.yml? (for