[symfony-users] Re: best way to override handleError ??

2007-07-08 Thread Francois Zaninotto
You could always extend the sfActions class and have your actions inherit this class instead of sfActions... François -Message d'origine- De : symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : samedi 7 juillet 2007 15:42 À : symfony-users@

[symfony-users] Re: Plugin unit test

2007-07-08 Thread Francois Zaninotto
Hi Marco, You could try this: $ cd myproject $ php plugins/yourPlugin/test/unit/yourPluginTest.php That means, of course, having the plugin installed in a test project. Provided that you included the bootstrap scripts (check existing plugins to see how), this should work. Cheers, François -

[symfony-users] Re: Custom Join Helper with Pager

2007-07-08 Thread Tamcy
The sfPropelPager class has been refactored since I last updated the wiki. init() will try to query for the class path and fail because you're now returning the helper object. A workaround would be copy sfPropelPager::init() to your derived class, and modify the lines from "require the model class

[symfony-users] [Out Of Office] Re: [symfony-users] Re: Custom Join Helper with Pager

2007-07-08 Thread gert . vrebos
Beste, Ik ben met vakantie t/m 17 juli. Voor dringende vragen neemt u best rechtstreeks contact op met de firma op [EMAIL PROTECTED] Met vriendelijke groeten, Gert Vrebos I'm out of the office

[symfony-users] Re: Custom Join Helper with Pager

2007-07-08 Thread cyrille
same issues for me, does anyone have an answer ? adventex, have you find a solution ? regards, cyrille. On 23 mai, 15:33, adventex <[EMAIL PROTECTED]> wrote: > I'm having a lot of trouble getting the custome join helper class to > work with pager. There is a section dedicated to this topic at th

[symfony-users] Re: Propel problems

2007-07-08 Thread seaside
On Jul 8, 10:47 pm, "Alistair Stead" <[EMAIL PROTECTED]> wrote: > I have used propel in a number of projects on it's own without problem... > the problems I have encountered have been in the generation and setup... I > can say that apart from the very early releases that were back ported to > P

[symfony-users] Re: Propel problems

2007-07-08 Thread Alistair Stead
I have used propel in a number of projects on it's own without problem... the problems I have encountered have been in the generation and setup... I can say that apart from the very early releases that were back ported to PHP4 it is stable. I would suggest however that apart from the API there is l

[symfony-users] Re: Propel problems

2007-07-08 Thread seaside
On Jul 8, 9:44 pm, "Alistair Stead" <[EMAIL PROTECTED]> wrote: > Why have you installed propel and used the propel-gen commands? Think of my activity as a bootstrap activity: I try to understand all parts, before I got forward to use the whole system. Besides that, I probably need to include pr

[symfony-users] Re: image gallery assignment

2007-07-08 Thread Ant Cunningham
I ended up making a theme containing a helper based on admin_double_list() that adds a style attribute to the option tags as their written and a template to override editSuccess.php that includes this helper. On 7/8/07 4:57 AM, "Adriaan van N." <[EMAIL PROTECTED]> wrote: > > You may use AJAX d

[symfony-users] Re: Propel problems

2007-07-08 Thread Alistair Stead
Why have you installed propel and used the propel-gen commands? symfony included a stable release of propel specific to its requirements if you have installed symfony it includes all dependencies... On 08/07/07, seaside <[EMAIL PROTECTED]> wrote: > > > As a means to get started with symfony, I

[symfony-users] Propel problems

2007-07-08 Thread seaside
As a means to get started with symfony, I installed Propel v 1.2.0 including all other required parts. propel-gen manages to transform my specs without errors, although including generated stuff renders problem. Since I found various differences between the installation and the docs und I'm - alt

[symfony-users] Re: Is this LEFT JOIN possible using Criteria?

2007-07-08 Thread Scott Meves
You can do this 'hack' to get left joins to use multiple conditions: $c->addJoin(TABLE_A::ID, TABLE_B::ID.' AND '.TABLE_B::VALUE.' > 0', Criteria::LEFT_JOIN); That would generate this in SQL: ...LEFT JOIN TABLE_B ON (TABLE_A.ID = TABLE_B.ID AND TABLE_B.VALUE > 0) In your example, you would

[symfony-users] Re: image gallery assignment

2007-07-08 Thread Ant Cunningham
On 7/8/07 4:57 AM, "Adriaan van N." <[EMAIL PROTECTED]> wrote: > > You may use AJAX drag-n-drop? > http://www.symfony-project.com/demo/cart.html I considered that from an interface perspective before I even came across the issue with validity of an img tag within an option... For this purpose t

[symfony-users] Re: image gallery assignment

2007-07-08 Thread Ant Cunningham
> On Jul 7, 11:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> maybe this will help:http://technology.amis.nl/blog/?p=994 >> he uses css background-image on the options, i haven't tested this, >> but seen selectboxes with images inside on various website so give it >> a try Yeah I ende

[symfony-users] Re: cursing exception abuse

2007-07-08 Thread Lukas Kahwe Smith
On 08.07.2007, at 04:38, Steve Lianoglou wrote: > > Hi Pierre, > >> So, what if there can be thrown 6 or 7 different exception in a try- >> block and you don't want to handle all the same, but there's a >> forward >> with an sfStopException. Tell me how to implement that without typing >> 6-7

[symfony-users] Is this LEFT JOIN possible using Criteria?

2007-07-08 Thread Levente Brok
Hi, I am trying to create an SQL query similar to this one: SELECT table1.* FROM table1 LEFT JOIN table2 ON (table1.id=table2.id AND table2.someColumn= someValue) So basically the LEFT JOIN has more than one conditional expressions. Can this be done with the Criteria object or should I use a r

[symfony-users] Propel and default boolean values

2007-07-08 Thread Timu EREN
Hi all, I have a boolean column on one table and contain false for default value. I am do like this, $flys = FlysPeer::retrieveById($this->getRequestParameter('id')); if(!$flys) { $flys = new Flys(); } return sfView::SUCCESS; and if doesn't have any record on database, returnin

[symfony-users] Re: image gallery assignment

2007-07-08 Thread Adriaan van N.
You may use AJAX drag-n-drop? http://www.symfony-project.com/demo/cart.html On Jul 6, 6:47 am, Ant Cunningham <[EMAIL PROTECTED]> wrote: > im dealing with a many to many relationship like so: > > gallery: > id: > name: > > media: > id: > file_path: > > gallery_media: > id: > gallery_i

[symfony-users] check if component_slot exists

2007-07-08 Thread Greg Freeman
Is there a way to check if a component slot exists in your main layout? (similar to has_slot for normal slots). My component_slot is a contextual navigation enclosed in but I don't want this to be outputted unless the component_slot is active for the current action. You can check this for norma