Re: [symfony-users] Re: best way to implement ownership?

2010-10-28 Thread Paul Burdon
.com > > 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...@googlegroups.com &g

Re: [symfony-users] Re: best way to implement ownership?

2010-10-21 Thread Paul Burdon
ject.com > > 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...@googlegroups.c

Re: [symfony-users] Re: best way to implement ownership?

2010-10-21 Thread Paul Burdon
il to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Paul Burdon Projects Director, Clear Intent -- p...@clearintent.co.uk www.clearintent.co.uk +4

Re: [symfony-users] demo site - seperate db connection?

2010-09-10 Thread Paul Burdon
to keep > > data clean too. You could use some kind of flag to differentiate real > > data from the demo stuff, but it would be not to best thing to do... > > > > With symfony you can easily use two different connections on an app- > > basis. Check the gentle introdu

Re: [symfony-users] Re: demo site - seperate db connection?

2010-09-09 Thread Paul Burdon
Hi Davide, Thanks for replying. This is the issue, if I truncate the database and the demo data is in the same db as client data I would also dump all the actual client data. Hence the question about 2 databases. If I have demo site accessing demoDB and client stuff clientDB then that makes mor

Re: [symfony-users] sfGuard redirecting to referrer OR to default, can't have both?

2010-08-13 Thread Paul Burdon
Thanks Alexandre, that's a good 'starter for 10' Appreciated. On 12 August 2010 22:01, Alexandre Salomé wrote: > Override the sfGuard controller. > > Create a module sfGuardAuth in your application, create the > actions.class.php and extends the same class as the controller in the > plugin. > >

Re: [symfony-users] Re: permissions checker - where to test, where to put method?

2010-08-02 Thread Paul Burdon
Thanks, very helpful. Paul On 30 July 2010 11:54, Oscar Saraza wrote: > I already do something like that... I think. > > My solution: to create a subclass of the symfony class sfActions (in > my case ssActions, placed in the lib folder). This subclass contains > the preExecute method with the a

Re: [symfony-users] change pages displayed by pager?

2010-06-18 Thread Paul Burdon
I knew it would be mind-bendingly easy. Thanks, TW 2010/6/18 Gábor Fási > I'm guessing you need the $nb_links parameter of the getLinks > function: > http://trac.symfony-project.org/browser/branches/1.4/lib/addon/sfPager.class.php#L105 > > On Fri, Jun 18, 2010 at 11:19, Tofuwarrior wrote: > >

Re: [symfony-users] how to change text label attached to new link in embedRelation form

2010-05-28 Thread Paul Burdon
t it has a positions array that I can access with ['UglyName']->getPositions() and the last position is 'newUglyName' getFields() yields an array of widgets the last one beingis referenced by 'aNewUglyName' but I can't work out how to get at it to try setLabe

Re: [symfony-users] how to change text label attached to new link in embedRelation form

2010-05-28 Thread Paul Burdon
HI Stephane, Just the ticket. Thanks! Paul On 28 May 2010 00:24, Stéphane wrote: > Hi, > > $this->getWidget($uglyName)->setLabel('my smart label'); > > Cheers, > > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnement

Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-29 Thread Paul Burdon
Thanks Both, no point in making things harder if symfony gives you the tools especially if javsacript is not a strong one which for me it isn't so i like the partial example, that was what I was after - understanding how to link the symfony elements together to make it nice and neat. Really appre

Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Paul Burdon
Could you clarify what the 'proper' way is please. Thanks. On 21 April 2010 14:02, Massimiliano Arione wrote: > On 21 Apr, 14:39, Gareth McCumskey wrote: > > And if you had to create a restful api that returns content as JSON? > > Returning JSON using renderText is perfectly valid and does not

Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Paul Burdon
Thanks for all input everyone. Finally got it working, had to mess around with the javascript aswell and that is always tricky for someone who really has never gone very far with it. Anyway, it looks and works great, who would have thought that old dirty javascript would turn out to be such a use