[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: https://groups.google.com/d/topic/symfony-

[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 a

[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 "symf

[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 i

[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: ProjectConfi

[symfony-users] Removing previously set query params on a doctrine_query object

2010-10-21 Thread Phil Moorhouse
Hi, I have a Doctrine_Query that gets passed to some model filters for my search. Initially by default, the query should have a left join set to help hydrate related objects for a count column. However, one of the filters should limit results to ones that have existing records in the related tabl

[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 ... relations: Sessions: class: Session refClass: ArtistSession local: artist_id foreign

[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 wrote: > Hi, > > I am thinking of developing a plugin that enables an "admin" to create > a form (

[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 wrote: > The site needs to work with javascript disabled so unfortunately > that's not an

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

2010-09-08 Thread Phil Moorhouse
s completed and that A2 can load the new > content. > >     gabriel > > On Sep 7, 6:04 pm, Phil Moorhouse 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 > >

[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" ima

[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 accessing

[symfony-users] Re: a good IDE for Symfony

2010-08-06 Thread Phil Moorhouse
Aptana Studio v3 is now open source and currently in beta - it has reintroduced it's own PHP editor (i.e. not using PDT as in v2) as well as including excellent CSS / JS / HTML / Ruby editors. http://www.aptana.com/products/studio3 It's stable and mostly usable, there are a few small non-critical

[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 infor

[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: sh

[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 wrote: > We do something very similar using the fantastic ysfDimensionsPlu

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

2010-04-12 Thread Phil Moorhouse
We do something very similar using the fantastic ysfDimensionsPlugin (http://www.symfony-project.org/plugins/ysfDimensionsPlugin) although it only lists sf1.1 so I'm not sure if it's compatible with sf1.4. It gives you your own cascading config / templates / actions / etc for each affiliate, i.e.

[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 wrote: > Hi all, > > I have an appli

[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 on

[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 complet

[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, Symfon

[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 wrote: > http://www.google.com/trends?q=Zend+Framework%2C+CakePHP%2C+CodeIgnit... > Why if I write in google trends: Zend Framework, Symfony - the results >

[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 a

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

2009-06-16 Thread Phil Moorhouse
ing > to get md5(34) to see user 34 historic. > > Hope it helps. > > On 15 juin, 17:53, Phil Moorhouse > 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 &g

[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 ca

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

2009-05-13 Thread Phil Moorhouse
r should I create a ticket? On 13 May, 11:56, "David Ashwood" wrote: > 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: symf

[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 event_types_per_n

[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 wit

[symfony-users] Re: composite unique indices

2009-04-15 Thread Phil Moorhouse
quot;RTFM" > =>http://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layerand > look for "Indexes". > > On 14 avr, 17:09, Phil Moorhouse > wrote: > > > Hi, I have a table with the fields "username" and "affiliate_id" &g

[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 Pro