Re: [symfony-users] Re: optional sfGuard user_id in plugin

2011-04-26 Thread Martin Settle
Thanks. I figured there must be something simple... I'll give that a try tonight. Marti. On Tue, Apr 26, 2011 at 1:02 AM, Roman Sichny wrote: > if ($user instanceOf sfGuardSecurityUser) > ... > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfon

[symfony-users] optional sfGuard user_id in plugin

2011-04-25 Thread Martin Settle
Hi all. I am working on an accounting general ledger plugin that I expect to use in some projects I have planned. I would like to have a created_by field in one of my tables set automatically, but only if sfGuardPlugin is in use in the specific application. Is there a way to test if sfGuard is be

Re: [symfony-users] Trying to operate sfLightboxPlugin 1.0.11

2010-01-18 Thread Martin Settle
In the call to light_modallink you need to point to the module action that will return the contents of the lightbox... i.e. rather than 'sfLightboxPlugin/modal' you might have 'myModule/index' or whatever other action returns the information you want to display. Regards, Marti 2010/1/18 Javier

[symfony-users] Re: 1.4, propel, and sfGuard problem

2010-01-06 Thread Martin Settle
Okay, found my error. I decided to just start over, and this time noticed the '--orm=Propel' option on generate:project. Obviously just changing which module is enabled on a project built for Doctrine is insufficient to change the layer. It all works now. Marti 2010/1/5 Martin Se

[symfony-users] 1.4, propel, and sfGuard problem

2010-01-05 Thread Martin Settle
I thought I might try re-writing a system I built a few years ago inside symfony. To that end, I created an Ubuntu server Vbox appliance, installed symfony 1.4, initiated a new project and app, changed the default Doctrine to Propel (I'm familiar with it), then added sfGuard. At this point I succ

Re: [symfony-users] Trying to give a default value to a form

2009-11-18 Thread Martin Settle
In other words, you need to create the Mensaje object first... public function executeNew(sfWebRequest $request) { $m = new Mensaje(); $m->setContent('Hola'); $this->form = new MensajeForm($m)); } 2009/11/18 Gábor Fási : > The first parameter of a doctrine form should be an object i

[symfony-users] Re: sfLightboxPlugin close on form submit

2009-11-02 Thread Martin Settle
re using the onClick > attribute of the input statement. > > onClick="Modalbox.hide(); return true|false;" (depending on what the > plugin needs for chaining events). > > You can also quickly test it with firefox + firebug in the console. > > On Sat, 2009-10-31 at

[symfony-users] Re: sfLightboxPlugin close on form submit

2009-10-31 Thread Martin Settle
that I missed, I would thank you for your advice. Marti 2009/10/31 Alexandre SALOME : > Other solution would be to try reading documentation :) > > 2009/10/30 David Ashwood >> >> Try: Modalbox.hide(); >> >> On Fri, 2009-10-30 at 14:51 -0400, Martin Settle wrote: &g

[symfony-users] sfLightboxPlugin close on form submit

2009-10-30 Thread Martin Settle
I've got a form appearing in a lightbox, which calls a remote function and updates the parent page. However, I'd like to have the lightbox close on the submission of the form. I'm trying to use an to close the lightbox, but I can't for the life of me figure out what the javascript function call

[symfony-users] Re: sfGuard at application environment level

2009-10-23 Thread Martin Settle
ou follow all of the steps in the install guide? >> >> Doctrine version is here: >> http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin >> >> Lots of people miss the part about changing the myUser class, and of >> course don't forget to 'symfo

[symfony-users] Re: sfGuard at application environment level

2009-10-21 Thread Martin Settle
opping one of the l's from: > >> defaullt: >>   is_secure: on > > On Wed, 21 Oct 2009 20:48:03 +0200, Martin Settle > wrote: > >> >> Hi all. >> >> I'm about to start parallel-processing on a symfony database.  I'd >> like to be able

[symfony-users] sfGuard at application environment level

2009-10-21 Thread Martin Settle
Hi all. I'm about to start parallel-processing on a symfony database. I'd like to be able to give people the opportunity to log in and play with the system in a 'demo' environment while we deal with live data in 'prod'. I've been trying to use sfGuard to lock down 'prod', changing my apps/front

[symfony-users] Re: javascript quotes in form widget attributes

2009-10-09 Thread Martin Settle
Okay, please ignore... I simply reversed the quotes... single quotes to encapsulate javascript and double quotes to encapsulate div id. Oh, and I replaced visible with an empty string. Now it all works. 2009/10/9 Martin Settle : > Hi all. > > This is, I'm sure, a newbie questio

[symfony-users] javascript quotes in form widget attributes

2009-10-09 Thread Martin Settle
Hi all. This is, I'm sure, a newbie question, but my eyes are going blurry looking at google results. I want to have a choice made in a select box display the next element of the form, which is in a hidden in my Form class, I have: $this->widgetSchema['vendor_id']->setAttributes(array(