[symfony-users] Re: IDE code completion + service container ? (eclipse, netbeans)

2011-05-07 Thread Tony Piper
> I've already considered extending the Controller class to add some of > those functions and having my own Controllers extend that class > But changing my code (specially on this level) to help my editor feels > really stupid ... > > Am I really the only developer out there who sucks at memorizing

[symfony-users] Re: newbie stuck on apache conf

2010-07-26 Thread Tony Piper
There are two ways to fix this. The first is to create an Apache alias, the second is to create a symlink (which might not work, depending on your MAMP config). So let's try creating an alias first... In the MAMP settings for the site, choose the 'advanced' tab and in the bottom box ('Customized

[symfony-users] Re: Templates in a single directory

2010-05-16 Thread Tony Piper
Would http://www.symfony-project.org/plugins/ysfDimensionsPlugin help? cheers, Tony. On May 16, 6:53 pm, Davide Borsatto wrote: > Hi everybody, > > for the project I've been working on I need to be able to define > multiple themes. > With "theme" I mean the full thing, including php code for th

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

2010-04-12 Thread Tony Piper
e would mean 10 page refreshes... > > Anyway if anyone gets a chance let me know what you think about this... > > Regards > Richard > > Btw... to anyone who i offended earlier... my deepest apologies... > sometimes frustration gets the better of me... > > > > On

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

[symfony-users] Re: Doctrine equivalent to isColumnModified

2010-02-23 Thread Tony Piper
Try this: $modifiedFields=$this->getModified(); You can then use array_key_exists() to see if your field has been modified. cheers, Tony. On Feb 23, 5:34 pm, Luã @hisamu wrote: > Hi, > > I want to know if a column was modified, in my model's save() method. > Using Propel there's the isColumnM

[symfony-users] Re: handling multiple subdomains, sharing the "lib" and "apps" folder

2010-02-18 Thread Tony Piper
When you say you have a bunch of subdomains do you mean a few more than the three you listed below, or potentially hundreds? If it's just the three then you might want to create a different environment for each of them with a corresponding 'dev' environment - e.g. one and one-dev, two and two-dev,

[symfony-users] Re: Edit/Show - protect against non permission access

2010-02-09 Thread Tony Piper
On Feb 9, 12:07 pm, wueb wrote: > Thank you very much Gábor and Tony. > > Only 2 things Tony. > > First - that findOwned method is called when? When i make $this->leads > = $this->getRoute()->getObject(); ? I'm fairly sure it's as the route is processed, not when the getObject is fetched. > >

[symfony-users] Re: Edit/Show - protect against non permission access

2010-02-09 Thread Tony Piper
Or, you could create new 'finder' methods in your model table class that find only records owned by the current user. This example assumes you're using Doctrine, but there should be an equivalent in Propel. You specify these methods in your routine.yml; leads: class: sfDoctrineRouteCollectio

[symfony-users] Re: Doctrine data-load out of memory (Ticket #7733)

2010-02-02 Thread Tony Piper
On Jan 31, 5:43 pm, Brandon Turner wrote: > Hello all, > > I've been using data fixtures more and more in my Symfony 1.4.1 project > and have run up against an out-of-memory error when loading data via the > doctrine:data-load task.  My PHP CLI memory_limit is currently set at > 32MB.  I've got

[symfony-users] Re: Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Tony Piper
er.  Perhaps we should post on symfony_devs.  I've been > experiencing out of memory issues when loading a large amount of > fixtures via doctrine:data-load - which appears to be due to this same > issue. > > Brandon > > On 02/02/2010 11:03 AM, Tony Piper wrote: > >

[symfony-users] Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Tony Piper
Hello. I've spent a good few hours trying to fix a memory leak in a Symfony Task which uses Doctrine to access a table. I'm finding that if I specify an application name (so that the Task runs with an sfApplicationConfiguration instance) there is a memory leak each time I run the simplest of Doctr

[symfony-users] Re: DBFinderPlugin future

2009-11-26 Thread Tony Piper
+1 from me. It would be great if François could update it for Propel 1.4 and Symfony 1.3/1.4 compatibility - it would probably take him just a few minutes (relative to how long it would take me)… The lack of DbFinder is a show-stopper for my 1.2->1.3 upgrade testing and migration plans. cheers,

[symfony-users] setLayout in a Library

2007-08-23 Thread Tony Piper
Hello, I'm writing a mail wrapper using Swiftmail, and this will be held in a library, not part of an action, model or view. I need to change the layout from within this library class, once for HTML mail, once for Plain Text mail. What I've got so far isn't working - both bodies get rendered wi