Re: [symfony-users] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Tom Haskins-Vaughan
> What if client has javascript disabled?

Then you should create a normal link first

  ">Next

And then use javascript to change it if it is available.

On Tue, Mar 16, 2010 at 9:06 AM, Massimiliano Arione  wrote:
> What if client has javascript disabled?
>
> On 15 Mar, 18:38, Javier Garcia  wrote:
>> Ok, this is the solution:
>>
>>                 ')">next
>>
>> Javi
>>
>> On Mar 15, 5:59 pm, Javier Garcia  wrote:
>>
>> > Hi,
>>
>> > i have this line below that shows a link to go the next page of a list.
>>
>> > Next page
>>
>> > The problem: as expected, it only works in the development enviroment of
>> > the frontend (frontend_dev.php).
>>
>> > My question: what should i to get it work on both enviroments
>> > (production and development)? Using if's and getting the environment
>> > being used is the only way, or is there any cooler way?
>>
>> > Javi
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] about i18n for template

2010-03-19 Thread Tom Haskins-Vaughan
Hey Andy,

That's something that I have often thought of but never tackled.

Have you tried using something like %HELLO% instead of [HELLO]?

On Thu, Mar 18, 2010 at 9:40 PM, Andy Cheung  wrote:
> Hello,
>
> I would like to ask if it is possible to return another language
> translation instead of the input when there is no translation for the
> user's current language.
>
> For example:
>
> in the template:
> 
>
>
> in a translation in 'en'
>      
>        [HELLO]
>        Hello
>      
>
>
> OK, when the user reads the page in 'en', the
> [HELLO] message is translated without problem,
> but if the user changes to another language say 'fr',
> and I have not defined this translation for fr, then
> it will display [HELLO](the input value).
>
> However, what I want is that to return
> the en translation as default.
>
> I am doing the translation like this because
> the wording of the default language(en) may change frequently
> but not it other language, and it will be very annoying if
> I change the  for other language every time.
>
> Hope someone gives me advice, thanks!
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
I don't think storing objects is recommended. I think the prefered
method is to save the object and store the id in the user session.

On 3/23/10, Belgacem TLILI  wrote:
> i have save an object ($book)  in the user session with the name bk
>
> $this->getUser()->setAttribute('bk',$book);
>
>  i need to save this object in the database after other actions
> i use
>
> $book= $this->getUser()->getAttribute('bk');
>
> $book->save();
>
> but this return all time null
>
> anybody have an idea plz
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
What is the problem with storing the inscription in the database? Even
if the user cancels before finishing you could either just delete the
record after a predetermined time or use the record as data on how
many people are completing how many of your steps.

You might find that 4 steps is too many ;)

On Tue, Mar 23, 2010 at 9:43 AM, Raphael Schumacher
 wrote:
> See: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13
> Subchapter "User Attributes" contains a note addressing the issue
> about storing objects directly:
> 
> We could have feasibly stored the JobeetJob objects directly into the
> session. This is strongly discouraged because the session variables
> are serialized between requests. And when the session is loaded, the
> JobeetJob objects are de-serialized and can be "stalled" if they have
> been modified or deleted in the meantime.
> 
> This of course primarily applies to persistent objects. With non-
> persistent objects, or persistent objects that haven't been saved so
> far (e.g. false === $object->exists() ) things could look different.
>
> To come back to your question:
> - it should work in principle, although it's not necessarily the
> cleanest solution
> - use a default value $book= $this->getUser()->getAttribute('bk',
> null);
> - maybe there is a problem with the session --> did you check wether
> setAttribute/getAttribute works by trying storing/retrieving any
> trivial thing, e.g. a string value?
>
> Hope that helps a bit further...
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
What does this produce:

  var_dump($a);

On Tue, Mar 23, 2010 at 11:57 AM, Jérémie  wrote:
> Belgacem TLILI wrote:
>>
>> now i have save the form fiels in an array
>> then i have save this array in the user session
>>
>> $forms1= Array($form->getValues());
>> $this->getUser()->setAttribute('etab',$forms1);
>>
>> then:
>> $a=$this->getUser()->getAttribute('etab');
>> $b=$a[0];
>> this return null ??
>>
>>
>
> Well, I'm not sure, but I still wanna help :-p
> Does $a[0] means it will return the 1st box of your array, or this it mean
> it will return the one indexed by "0" ?
> Maybe here is the problem.
>
> Jérémie.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
But is it an array or an object with an array interface?

On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI  wrote:
> $a[0] means it will return the 1st box of my array,
>
> On Mar 23, 5:02 pm, Tom Haskins-Vaughan 
> wrote:
>> What does this produce:
>>
>>   var_dump($a);
>>
>> On Tue, Mar 23, 2010 at 11:57 AM, Jérémie  wrote:
>> > Belgacem TLILI wrote:
>>
>> >> now i have save the form fiels in an array
>> >> then i have save this array in the user session
>>
>> >> $forms1= Array($form->getValues());
>> >> $this->getUser()->setAttribute('etab',$forms1);
>>
>> >> then:
>> >> $a=$this->getUser()->getAttribute('etab');
>> >> $b=$a[0];
>> >> this return null ??
>>
>> > Well, I'm not sure, but I still wanna help :-p
>> > Does $a[0] means it will return the 1st box of your array, or this it mean
>> > it will return the one indexed by "0" ?
>> > Maybe here is the problem.
>>
>> > Jérémie.
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscribegooglegroups.com or reply to this email with the
>> > words "REMOVE ME" as the subject.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Tom Haskins-Vaughan
which widget are you using?

On Tue, Mar 23, 2010 at 2:14 PM, Javier Garcia  wrote:
> Hi,
>
> in the Edit action, i have a date widget with a format month/day/year.
>
> I would like that the format of that date widget was day/month/year.
>
> I have followed the manual, and i now i have this in my settings.yml
>
> all:
> .settings:
> default_culture: es_ES
>
> I have also removed the cookies as the manual says, but the format is not
> what i desire.
>
> Sf 1.2
>
> Any idea?
>
> Javi
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Tom Haskins-Vaughan
Try this: http://www.symfony-project.org/api/1_2/sfWidgetFormI18nDate

On Tue, Mar 23, 2010 at 3:02 PM, Javier Garcia  wrote:
> 'fecha_nac'        => new sfWidgetFormDate(),
>
>
> On 03/23/2010 07:36 PM, Tom Haskins-Vaughan wrote:
>>
>> which widget are you using?
>>
>> On Tue, Mar 23, 2010 at 2:14 PM, Javier Garcia
>>  wrote:
>>
>>>
>>> Hi,
>>>
>>> in the Edit action, i have a date widget with a format month/day/year.
>>>
>>> I would like that the format of that date widget was day/month/year.
>>>
>>> I have followed the manual, and i now i have this in my settings.yml
>>>
>>> all:
>>> .settings:
>>> default_culture: es_ES
>>>
>>> I have also removed the cookies as the manual says, but the format is not
>>> what i desire.
>>>
>>> Sf 1.2
>>>
>>> Any idea?
>>>
>>> Javi
>>>
>>> --
>>> 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 "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
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscribegooglegroups.com or reply to this email with the
>>> words "REMOVE ME" as the subject.
>>>
>>>
>>
>>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Accessing user session from a custom routing class

2010-03-23 Thread Tom Haskins-Vaughan
+1

On Tue, Mar 16, 2010 at 1:17 PM, Jose Antonio Pio Gil
 wrote:
> I have the same question about it!
>
>
> 2010/3/16 HiDDeN 
>>
>> Is there some way to acces the user object from a custom routing
>> class?
>>
>> I'd like to add a parameter when generating a url, and that parameter
>> is inside the user session, so I need to access it.
>>
>> The only way I found to access is using the sfContext::getInstance()-
>> >getUser(), but it's known to be inefficient.
>>
>> Thanks!
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Best way to store app settings that are configurable from administrator interface

2010-03-24 Thread Tom Haskins-Vaughan
I think the problem you're going to run into here is that the cache
needs to be reloaded each time you make a change to the app.yml file.
So perhaps it's best to have a config table in your database.

On Tue, Mar 23, 2010 at 11:04 AM, Adi VELICU  wrote:
> Hello,
>
> I am new to Symfony, but I did my best to document myself before
> asking this question.
> I have a couple of settings in my application which I've placed in
> app.yml for now. They are related to aspects of the application that
> should be modifiable by the administrator through a web interface. Is
> this the best way to do it?
>
> For now I've created an action and a form that displays the content of
> the app.yml file and writes it after the admin has modified it. I am
> not sure this is the best solution; if the administrator were to make
> a mistake in editing the YML file, he might lock himself out of the
> administrative interface.
>
> Any tips on where to define a couple of application-specific
> parameters (such as max_images_per_page, max_images_per_gallery etc)
> that can be easily modified by the administrator?
>
> Thanks,
> Adi
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Best way to store app settings that are configurable from administrator interface

2010-03-24 Thread Tom Haskins-Vaughan
Sorry Alex, this was meant to arrive before yours ;-)

On Wed, Mar 24, 2010 at 8:57 AM, Tom Haskins-Vaughan
 wrote:
> I think the problem you're going to run into here is that the cache
> needs to be reloaded each time you make a change to the app.yml file.
> So perhaps it's best to have a config table in your database.
>
> On Tue, Mar 23, 2010 at 11:04 AM, Adi VELICU  wrote:
>> Hello,
>>
>> I am new to Symfony, but I did my best to document myself before
>> asking this question.
>> I have a couple of settings in my application which I've placed in
>> app.yml for now. They are related to aspects of the application that
>> should be modifiable by the administrator through a web interface. Is
>> this the best way to do it?
>>
>> For now I've created an action and a form that displays the content of
>> the app.yml file and writes it after the admin has modified it. I am
>> not sure this is the best solution; if the administrator were to make
>> a mistake in editing the YML file, he might lock himself out of the
>> administrative interface.
>>
>> Any tips on where to define a couple of application-specific
>> parameters (such as max_images_per_page, max_images_per_gallery etc)
>> that can be easily modified by the administrator?
>>
>> Thanks,
>> Adi
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>> To unsubscribe from this group, send email to 
>> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
>> words "REMOVE ME" as the subject.
>>
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: Accessing user session from a custom routing class

2010-03-24 Thread Tom Haskins-Vaughan
Looks like there's some good stuff here:

http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing

On Wed, Mar 24, 2010 at 11:28 AM, Alan Bem  wrote:
> On Wed, Mar 24, 2010 at 4:08 PM, HiDDeN 
> wrote:
>>
>> I have tried sfRoute::$context
>
>
>>
>> And from a custom routing class it returns "Fatal error: Access to
>> undeclared static property: sfRoute::$context"
>
> sfRoute::$context is just a notation. sfRoute::$context is available through
> $this->context inside of your custom route.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Losing data upon creating new tables

2010-03-24 Thread Tom Haskins-Vaughan
http://www.symfony-project.org/doctrine/1_2/en/07-Migrations

I don't know if there are any major differences for sf1.4.

On Wed, Mar 24, 2010 at 4:53 PM, Parijat Kalia  wrote:
> Migrations? I haven't yet heard of them. Does the book cover it by any
> chance? Please give me some pointers on where I can learn more about
> migrations. That would be awesome. Thanks!
>
> On Wed, Mar 24, 2010 at 11:47 AM, Eno  wrote:
>>
>> On Tue, 23 Mar 2010, Parijat Kalia wrote:
>>
>> > I don't want that to happen. Is symfony trying to tell me that there is
>> > no
>> > way around this? That I absolutely must loose all my data so as to be
>> > able
>> > to add new data? OMG!
>>
>> That's why migrations in Doctrine rock.
>>
>>
>>
>> --
>> A
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscribegooglegroups.com or reply to this email with the
>> words "REMOVE ME" as the subject.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] no web debug toolbar in symfony 1.2.12

2010-03-25 Thread Tom Haskins-Vaughan
Is it set for the correct environment (prod, dev, etc)?

Did you clear your cache? symfony cc

Does it appear if you change it to true instead of on? I don't
remember when that change happened.

On Thu, Mar 25, 2010 at 1:05 PM, Peter Peltonen
 wrote:
> I would like to use the web debug toolbar, but for some reason I am
> unable to make it appear (I've inherited this symfony installation
> from another developer). In apps/frontend/config/settings.yml I have
>
>
> web_debug:              on
>
>
> for prod, dev and test. But I see no toolbar? Do I need to request it
> with some specific parameter or what should I do to get it appear?
>
> Newbie regards,
> Peter
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] no logs created in symfony 1.2.12

2010-03-25 Thread Tom Haskins-Vaughan
Does the logdirectory have write permissions for the web server user?

On Thu, Mar 25, 2010 at 12:55 PM, Peter Peltonen
 wrote:
> I have a problem with my symfony 1.2.12 installation that I inherited
> from another developer: no logs are being created in the log
> directory. In apps/frontend/config/settings.yml I have:
>
>
> logging_enabled:        on
>
>
> for prod, dev and test. And in apps/frontend/config/factories.yml
>
>
> prod:
>  logger:
>    class:   sfNoLogger
>    param:
>      level:   err
>      loggers: ~
>
> cli:
>  controller:
>    class: sfConsoleController
>  request:
>    class: sfConsoleRequest
>  response:
>    class: sfConsoleResponse
>
> test:
>  storage:
>    class: sfSessionTestStorage
>    param:
>      session_path: %SF_TEST_CACHE_DIR%/sessions
>
>  response:
>    class: sfWebResponse
>
>
> Are those settings somehow misconfigured or am I missing something else?
>
> Best,
> Peter
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: Best way to store app settings that are configurable from administrator interface

2010-03-25 Thread Tom Haskins-Vaughan
Perhaps. I just wanted to make it clear that I was commenting on Adi's
email rather than Alex's :)

On Thu, Mar 25, 2010 at 9:04 AM, Gorka  wrote:
> Wouldn't Alex's solution also need a cache reload?
>
> On 24 mar, 13:58, Tom Haskins-Vaughan 
> wrote:
>> Sorry Alex, this was meant to arrive before yours ;-)
>>
>> On Wed, Mar 24, 2010 at 8:57 AM, Tom Haskins-Vaughan
>>
>>
>>
>>  wrote:
>> > I think the problem you're going to run into here is that the cache
>> > needs to be reloaded each time you make a change to the app.yml file.
>> > So perhaps it's best to have a config table in your database.
>>
>> > On Tue, Mar 23, 2010 at 11:04 AM, Adi VELICU  wrote:
>> >> Hello,
>>
>> >> I am new to Symfony, but I did my best to document myself before
>> >> asking this question.
>> >> I have a couple of settings in my application which I've placed in
>> >> app.yml for now. They are related to aspects of the application that
>> >> should be modifiable by the administrator through a web interface. Is
>> >> this the best way to do it?
>>
>> >> For now I've created an action and a form that displays the content of
>> >> the app.yml file and writes it after the admin has modified it. I am
>> >> not sure this is the best solution; if the administrator were to make
>> >> a mistake in editing the YML file, he might lock himself out of the
>> >> administrative interface.
>>
>> >> Any tips on where to define a couple of application-specific
>> >> parameters (such as max_images_per_page, max_images_per_gallery etc)
>> >> that can be easily modified by the administrator?
>>
>> >> Thanks,
>> >> Adi
>>
>> >> --
>> >> 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 "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
>> >> For more options, visit this group at
>> >>http://groups.google.com/group/symfony-users?hl=en
>>
>> >> To unsubscribe from this group, send email to 
>> >> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
>> >> words "REMOVE ME" as the subject.- Ocultar texto de la cita -
>>
>> - Mostrar texto de la cita -
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-25 Thread Tom Haskins-Vaughan
+1

I've always been interseted in doing this

On 3/25/10, trankh  wrote:
> Hello,
> I am a beginner to symfony.
>
> I haven't found a correct explanation for How to implement a basic
> filter on frontend with Doctrine??
>
> I tried to tweek admin backend filters and copy to frontend but it is
> really dirty.
>
> Moreover, i don't want to display edit or delete button, I just want a
> list..
>
>
> Thank you!
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] for the sfGuardPlugin, how do determine from within layout.php if a user has authenticated

2010-03-25 Thread Tom Haskins-Vaughan
I'm pretty sure a user instance is created regardless of whether
you're logged in or not, or even whether or not you're using sfGuard.

On 3/25/10, michael hodges  wrote:
> Hello all,
>
> Another newbie question.  I've spent several days hunting for a way to
> determine if a user has been authenticated or not from within
> layout.php
>
> Reading the API (symfony 1.4) I thought one of the three boolean
> functions below would let me know if a user object is instantiated or
> not, but they don't.  My goal is to check first and not call the
> get('user') function unless the user  object has been instantiated.
> The 'if' tests below yield the same results regardless of whether or
> not I've logged in a user using the sfGuardPlugin.  I'm in the wrong
> track it seems, but given that I'm attempting to execute this code
> from layout.php, not sure what the correct approach should be.  Any
> advice would be greatly appreciated. I note that config shows "symfony/
> user/sfUser/authenticated: true"  and alternatively I've been trying
> to figure out how to access that info, but with no luck.
>
> Thanks
>  -Michael
>
>
> if(sfContext::getInstance()->hasInstance('user'))
>   fwrite ($file, "hasInstance\n");
> if(sfContext::getInstance()->has('user'))
>   fwrite ($file, "has\n");
> if(sfContext::getInstance()->offsetExists('user'))
>   fwrite ($file, "offsetExists\n");
> $user = sfContext::getInstance()->get('user');
> fwrite ($file, $user.": \n");
>
> session:
>   symfony/user/sfUser/attributes: { symfony/user/sfUser/attributes:
> {  }, admin_module: { sfGuardUser.sort: [username, asc],
> sfGuardGroup.sort: [null, null], sfGuardPermission.sort: [null, null],
> student_class_standing.sort: [class_of_year, desc], payment_type.sort:
> [null, null], student.sort: [last_name, asc],
> transaction_receipt.sort: [paid_date, desc], student_fee.sort: [null,
> null], institution.sort: [null, null] }, symfony/user/sfUser/flash:
> {  }, symfony/user/sfUser/flash/remove: {  }, sfGuardSecurityUser:
> { user_id: '2' } }
>   symfony/user/sfUser/authenticated: true
>   symfony/user/sfUser/credentials: [admin_permission,
> frontoffice_permission, reports_permission, backoffice_permission]
>   symfony/user/sfUser/culture: en
>   symfony/user/sfUser/lastRequest: 1269561611
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] apostrophePlugin is now internationalized

2010-03-26 Thread Tom Haskins-Vaughan
Looks great! But this worries me a little:

"By default, a new Symfony 1.4 project escapes all output that is
emitted in templates. Apostrophe's strategy is to store valid UTF-8
encoded HTML to begin with, addressing this issue in validators.
Currently you must disable output escaping in settings.yml, otherwise
Apostrophe slots will not work properly: "

On Fri, Mar 26, 2010 at 10:05 AM, Tom Boutell  wrote:
> A quick announcement: our CMS, Apostrophe, is now internationalized.
> The apostrophePlugin Symfony plugin now has a fully i18n-ready user
> interface and also offers internationalization for content.
>
> Translations in French, German and Spanish are standard in the sandbox
> project and you can use these interface translation files in your own
> sites. Thanks to Quentin Dugauthier, Frank Wenzl and Pablo Godel for
> their hard work on these.
>
> We released the i18n feature earlier in the week in version 1.0.9 and
> have since released a couple of quick fixes, bringing the current
> release to 1.0.11.
>
> apostrohePlugin is stable, in heavy production use on several client
> sites, built atop familiar Symfony ideas like modules, templates and
> slots and now also a good choice for your non-English and multilingual
> websites. Symfony slots and areas allow your users to manage content
> without damaging your design, fine-grained access control is
> available, and you can create your own custom Apostrophe slots and
> engine modules to manage unique content on the site. So please, if you
> are still "rolling your own CMS" for each client project, stop. Just
> stop. (:
>
> The apostrophePlugin page on the Symfony site is here:
>
> http://www.symfony-project.org/plugins/apostrophePlugin
>
> You can find out more about Apostrophe here:
>
> http://www.apostrophenow.com/
>
> And there is a full manual here, including a new section on
> internationalization:
>
> http://trac.apostrophenow.org/wiki/ManualOverview
>
> Thanks for checking out Apostrophe!
>
> --
> Tom Boutell
> P'unk Avenue
> 215 755 1330
> punkave.com
> window.punkave.com
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration ???

2010-03-27 Thread Tom Haskins-Vaughan
I'd recommend sfGuard. It's very well supported among many plugins

On Fri, Mar 26, 2010 at 12:03 PM, Bill P.  wrote:
> I'm not married to anything yet.
> Mainly trying to understand what or how I would do such a thing.
> I want a central user namagement that will allow CMS roles and a product
> listing/catalog based roles. From within the admin generation of symfony,
> the catalog/product listing seems pretty straight forward, but when looking
> at some of the CMS plugins, they use their own security it seems, but also
> based on sfGuard and such as well.
>
> Did that help?
> thanks.
>
> 
> From: Tom Ptacnik 
> To: symfony users 
> Sent: Fri, March 26, 2010 10:52:54 AM
> Subject: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration
> ???
>
> Which plugins do you want to use? Does they use sfGuardPlugin for
> users management?
>
>
> On 25 bře, 19:02, "Bill P."  wrote:
>> Hello,
>>
>> I am setting up a site and want to know if this is possible:
>>
>> I have to build a web site for a company that has some pages of static
>> content they want to manage and also a product catalog they also want to
>> update and allow people to add items to a cart.
>> Looking through some of the CMS plugins, it seems as though they have
>> seperate User management interfaces.
>>
>> I want to have a central location to manage users where I can create
>> groups for different functions, such as one group for CMS users, one for
>> Catalog managers and one for a superuser type.
>> Is this going to be possible?
>>
>> I'm currently going through the Jobeet in 24 hours tutorials but not
>> gotten to the users section yet. That day seems like it begins how to setup
>> resources, but no info on createing users and using a GUI based interface to
>> administer users.
>> GUI interface would be nice for the end client user.
>>
>> thank you.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
Hi,

I need to access the UPS shipping API for an ecommerce site. I'm
writing a class for this: sfShippingServiceUps. Now the calls I have
to make require me to send an XML string. My question is, do I just
created the xml as a variable in the class like they do over here:

http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/lib/sfUPSShipping.class.php

or is it possible to use some kind of template/view file? In the
action I'd just like to be able to do:

  $shippingService= new sfShippingServiceUps();
  $this->rateOptions = $shippingService->getRates();

I'd prefer not to have to use the action for making the API call, but
if this is the best way to do it, I'm ready to listen.

Thanks,

TOm

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
Thanks Alecs, looks like there's nothing there any more:

http://svn.symfony-project.com/plugins/sfShopPlugin/

On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu
 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> HI!
> There is a plugin inside sfShop project that can handle Delivery
> services. I haven't yet looked at it, but it would worth for you to do
> it.
> Alecs
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>
> iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33
> q6MAoJYsuitJ659vXHsV3oDXdXkre8D0
> =ypYy
> -END PGP SIGNATURE-
>
> On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan
>  wrote:
>> Hi,
>>
>> I need to access the UPS shipping API for an ecommerce site. I'm
>> writing a class for this: sfShippingServiceUps. Now the calls I have
>> to make require me to send an XML string. My question is, do I just
>> created the xml as a variable in the class like they do over here:
>>
>> http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/lib/sfUPSShipping.class.php
>>
>> or is it possible to use some kind of template/view file? In the
>> action I'd just like to be able to do:
>>
>>  $shippingService    = new sfShippingServiceUps();
>>  $this->rateOptions = $shippingService->getRates();
>>
>> I'd prefer not to have to use the action for making the API call, but
>> if this is the best way to do it, I'm ready to listen.
>>
>> Thanks,
>>
>> TOm
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>> To unsubscribe from this group, send email to 
>> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
>> words "REMOVE ME" as the subject.
>>
>
>
>
> --
> Have a nice day!
>
> Alecs
> Certified ScrumMaster
>
> There are no cannibals alive! I have ate the last one yesterday ...
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0722 621 280
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
Thanks, Alecs. I'll take a look

On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu
 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> we've moved somewhere else :
>
> http://code.google.com/p/sfshop/
>
> Alecs
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>
> iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s
> deMAnja+e4smQhqbFlupiuHv+Moy1Yiq
> =YBH6
> -END PGP SIGNATURE-
>
> On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan
>  wrote:
>> Thanks Alecs, looks like there's nothing there any more:
>>
>> http://svn.symfony-project.com/plugins/sfShopPlugin/
>>
>> On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu
>>  wrote:
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> HI!
>>> There is a plugin inside sfShop project that can handle Delivery
>>> services. I haven't yet looked at it, but it would worth for you to do
>>> it.
>>> Alecs
>>>
>>> -BEGIN PGP SIGNATURE-
>>> Version: GnuPG v1.4.9 (GNU/Linux)
>>> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>>>
>>> iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33
>>> q6MAoJYsuitJ659vXHsV3oDXdXkre8D0
>>> =ypYy
>>> -END PGP SIGNATURE-
>>>
>>> On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan
>>>  wrote:
>>>> Hi,
>>>>
>>>> I need to access the UPS shipping API for an ecommerce site. I'm
>>>> writing a class for this: sfShippingServiceUps. Now the calls I have
>>>> to make require me to send an XML string. My question is, do I just
>>>> created the xml as a variable in the class like they do over here:
>>>>
>>>> http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/lib/sfUPSShipping.class.php
>>>>
>>>> or is it possible to use some kind of template/view file? In the
>>>> action I'd just like to be able to do:
>>>>
>>>>  $shippingService    = new sfShippingServiceUps();
>>>>  $this->rateOptions = $shippingService->getRates();
>>>>
>>>> I'd prefer not to have to use the action for making the API call, but
>>>> if this is the best way to do it, I'm ready to listen.
>>>>
>>>> Thanks,
>>>>
>>>> TOm
>>>>
>>>> --
>>>> 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 "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
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/symfony-users?hl=en
>>>>
>>>> To unsubscribe from this group, send email to 
>>>> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
>>>> words "REMOVE ME" as the subject.
>>>>
>>>
>>>
>>>
>>> --
>>> Have a nice day!
>>>
>>> Alecs
>>> Certified ScrumMaster
>>>
>>> There are no cannibals alive! I have ate the last one yesterday ...
>>> I am on web:  http://www.alecslupu.ro/
>>> I am on twitter: http://twitter.com/alecslupu
>>> I am on linkedIn: http://www.linkedin.com/in/alecslupu
>>> Tel: (+4)0722 621 280
>>>
>>> --
>>> 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 "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
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>> To unsubscribe from this group, send email to 
>>> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
>>> words "REMOVE ME" as the subject.
>>>
>

Re: [symfony-users] Re: XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
I'm just playing with DOMDocument at the moment. Seems to do the job.

On Sat, Mar 27, 2010 at 2:32 PM, Lee Bolding  wrote:
> Or, use XMLWriter / simplexml (XMLWriter is usually easier)
>
> Using "templated" XML often leads to tears ;)
>
> On 27 Mar 2010, at 18:15, Richtermeister wrote:
>
>> Also, there's many ways to skin that cat.
>>
>> I've got one app where I'm indeed using a template for the xml, and in
>> the ups class I instantiate an instance of sfPartialView to render it.
>> Later I've tried another approach where the xml was embedded inside
>> the class via <<> Both work.
>>
>> Lastly, there's this: 
>> http://www.symfony-project.org/plugins/sfUPSShippingPlugin
>>
>> Daniel
>>
>>
>>
>> On Mar 27, 6:41 am, Tom Haskins-Vaughan 
>> wrote:
>>> Thanks, Alecs. I'll take a look
>>>
>>> On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu
>>>
>>>  wrote:
>>>> -BEGIN PGP SIGNED MESSAGE-
>>>> Hash: SHA1
>>>
>>>> we've moved somewhere else :
>>>
>>>> http://code.google.com/p/sfshop/
>>>
>>>> Alecs
>>>
>>>> -BEGIN PGP SIGNATURE-
>>>> Version: GnuPG v1.4.9 (GNU/Linux)
>>>> Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10)
>>>
>>>> iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s
>>>> deMAnja+e4smQhqbFlupiuHv+Moy1Yiq
>>>> =YBH6
>>>> -END PGP SIGNATURE-
>>>
>>>> On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan
>>>>  wrote:
>>>>> Thanks Alecs, looks like there's nothing there any more:
>>>
>>>>> http://svn.symfony-project.com/plugins/sfShopPlugin/
>>>
>>>>> On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu
>>>>>  wrote:
>>>>>> -BEGIN PGP SIGNED MESSAGE-
>>>>>> Hash: SHA1
>>>
>>>>>> HI!
>>>>>> There is a plugin inside sfShop project that can handle Delivery
>>>>>> services. I haven't yet looked at it, but it would worth for you to do
>>>>>> it.
>>>>>> Alecs
>>>
>>>>>> -BEGIN PGP SIGNATURE-
>>>>>> Version: GnuPG v1.4.9 (GNU/Linux)
>>>>>> Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10)
>>>
>>>>>> iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33
>>>>>> q6MAoJYsuitJ659vXHsV3oDXdXkre8D0
>>>>>> =ypYy
>>>>>> -END PGP SIGNATURE-
>>>
>>>>>> On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan
>>>>>>  wrote:
>>>>>>> Hi,
>>>
>>>>>>> I need to access the UPS shipping API for an ecommerce site. I'm
>>>>>>> writing a class for this: sfShippingServiceUps. Now the calls I have
>>>>>>> to make require me to send an XML string. My question is, do I just
>>>>>>> created the xml as a variable in the class like they do over here:
>>>
>>>>>>> http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/l...
>>>
>>>>>>> or is it possible to use some kind of template/view file? In the
>>>>>>> action I'd just like to be able to do:
>>>
>>>>>>>  $shippingService    = new sfShippingServiceUps();
>>>>>>>  $this->rateOptions = $shippingService->getRates();
>>>
>>>>>>> I'd prefer not to have to use the action for making the API call, but
>>>>>>> if this is the best way to do it, I'm ready to listen.
>>>
>>>>>>> Thanks,
>>>
>>>>>>> TOm
>>>
>>>>>>> --
>>>>>>> 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 "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
>>>>>>> For

[symfony-users] OO conceptual advice

2010-03-29 Thread Tom Haskins-Vaughan
(sf1.4/Doctrine)

Hi all,

Let's say I'm developing an ecommerce solution. I have the following models:

Order - takes a shopping cart all the way through to an actual order.

OrderItem - link between the Order and one or more Products

Product - a catalogue of products

Promotion - e.g., buy one get one free, or 10% off item, buy these
both for $10, etc

The part I'm interested in is the promotions. I *could* do the logic
in the Order model like so:

$order = new Order();
...
$order->applyPromotion($promotion);

But there is likely to be quite a lot of logic, depending on what kind
of promotion it is (adding OrderItems, discounting Orders, etc), so my
instinct was to create a PromotionManager class so for example:

$promoManager = new PromotionManager();
$promoManager->appyPromotion($promotion, $order);

Is this a better way to go, or am I causing myself needless abstraction?

I know there's more than one way to skin a cat, but I'm trying hard to
get to grips with the best way.

Anyway, thanks in advance.

Tom

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: [symfony-users] Re: OO conceptual advice

2010-03-30 Thread Tom Haskins-Vaughan
Thanks, guys! That's a great help. I will most probably take you up on
your offer of help! :)  In the meantime, I have a couple of follow on
questions:

1. What do you see the benefits of having a separate cart and order objects?

2. The Promotion classes were the logic takes place, are they also
model classes or are they separate classes?

Thanks again.

Tom

On Tue, Mar 30, 2010 at 2:00 AM, Richtermeister  wrote:
> Hey Tom,
>
> I wrote the ecommerce part of www.skinmedica.com, which uses a quite
> complex promotions setup and took some iterations to get it right. I'd
> be happy to help.
>
> Our cart works similar to what Antoine said, where the shopping cart
> is distinct from the final order, and mostly responsible for keeping
> track of what's in it for calculating prices (shipping, tax, total,
> etc. - the cart is actually composed of different independent service
> classes to look up shipping, & tax via webservices). Generally we try
> to keep the cart very limited in what it knows about the rest of the
> system.
>
> The way the promotions work is that they're being applied to the cart
> without the cart knowing much about what is happening. A promotion is
> basically handed the entire cart and it gets to decide whether it
> applies. It does that by using a separate class, a promotion
> criterion, which depending on its type can apply different logic to
> trigger whether it applies. For example, we have promotion criteria
> that trigger based on:
> - a certain cart subtotal
> - whether a certain product is in the cart
> - whether the customer is new
> - etc.
> Those are all different classes, extending a BasePromotionCriterion,
> that are further customizable via parameters from an admin area.
>
> When the promotion applies, it gets to make changes to the cart. Those
> changes, in turn, depend on the type of the promotion class.
> We have promotions that:
> - apply a cart discount
> - apply a product discount
> - add a free product
> - make shipping free of charge
> - etc.
>
> By combining criterion classes with promotions classes, and passing a
> few parameters along, you can create virtually any combination of
> promotions, and when you find limitations, you can simply add more
> classes. Plus, this is fairly easy to administer.
>
> The hardest part is issues like precedence and mutual exclusivity. For
> example, if a promotion applies a cart discount at a certain subtotal,
> then that in turn can lower the subtotal. So, the system needs to be
> smart enough not to remove the promotion again. Or, there are
> szenarios where 2 free shipping promotions are applicable, but the
> system should only apply one (usually the cheaper one, but that can
> vary).
> So, basically we apply weights to classes to figure out in which order
> the promotions apply, and there is an override parameter that enables
> each promotion to override others, for some manual finetuning.
> Sorting that all out is a matter of a series of interesting loops with
> callbacks that cost me a few sleepless nights :)
>
> Does that help? Let me know if you have any specific questions and I'd
> be happy to help more.
> Daniel
>
>
>
> On Mar 29, 5:56 pm, Tom Haskins-Vaughan 
> wrote:
>> (sf1.4/Doctrine)
>>
>> Hi all,
>>
>> Let's say I'm developing an ecommerce solution. I have the following models:
>>
>> Order - takes a shopping cart all the way through to an actual order.
>>
>> OrderItem - link between the Order and one or more Products
>>
>> Product - a catalogue of products
>>
>> Promotion - e.g., buy one get one free, or 10% off item, buy these
>> both for $10, etc
>>
>> The part I'm interested in is the promotions. I *could* do the logic
>> in the Order model like so:
>>
>> $order = new Order();
>> ...
>> $order->applyPromotion($promotion);
>>
>> But there is likely to be quite a lot of logic, depending on what kind
>> of promotion it is (adding OrderItems, discounting Orders, etc), so my
>> instinct was to create a PromotionManager class so for example:
>>
>> $promoManager = new PromotionManager();
>> $promoManager->appyPromotion($promotion, $order);
>>
>> Is this a better way to go, or am I causing myself needless abstraction?
>>
>> I know there's more than one way to skin a cat, but I'm trying hard to
>> get to grips with the best way.
>>
>> Anyway, thanks in advance.
>>
>> Tom
>
> --
> 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 subscribe

Re: [symfony-users] Re: OO conceptual advice

2010-03-30 Thread Tom Haskins-Vaughan
On Tue, Mar 30, 2010 at 8:10 PM, Richtermeister  wrote:
> Hey Tom,
>
> any time.
>
> The reason to keep orders and the cart separate is an issue of
> separation of concerns, where we're trying to avoid having classes do
> too many things (for all the obvious reasons of maintainability,
> easier unit testing and future flexibility).
>
> In our system orders are considered part of the persistence layer
> (simple propel objects really), so they fundamentally work like data
> storage and need to be viewable in different applications (admin area,
> customer service, automated export). This makes the order more of a
> historic document than an active element, and we feel this describes
> better what it really is.
>
> The cart on the other hand is an object that assembles an order, (an
> actor), and for that it needs to interact with lots of other objects,
> such as the current user (logged in, or guest?), shipping and tax
> services, promotions, etc. As you can see, that becomes quite a lot of
> code to drag around if you were to make this part of the order, and
> none of that is needed any more after an order is placed and post-
> checkout life-cycle begins. Also, this would potentially tie orders to
> one specific application (at least our cart is aware of the user,
> although I guess you could handle that differently).
>
> So, like Antoine said, it's easier to have createOrder() and
> loadOrder($order) methods on the cart, and otherwise keep them
> separate.
> Does that make sense?

But what if you want to change the shipping or add an item after the
customer has placed an order? The order is still acting like a cart
even though it is now technically an order. I took over a Codeigniter
project that has a separate cart and order and there is a lot of
duplication of code. For example the ability to apply a promotion to
both cart (before checkout) and an order (after checkout).  Granted,
the project is quite poorly written but still I'm thinking I can avoid
this by taking an order from cart to delivery.

>
> As for the promotion classes, in our system there are model classes
> which represent a "PromotionEvent", and store date and configuration
> of a promotion. At runtime, this model class is used to create and
> configure a more lightweight promotion class which can only apply
> itself to the cart. Same for criteria by the way, one class for
> storage, one for runtime. So, for each promotion at runtime you have a
> minimum of 4 classes going to work, plus the cart. Plus whatever else
> they need to do their job.

I was also thinking of having a Promotion table which would hold the
config info. Then I would apply the promo to the order with the
PromoManager. So you'd pass the Promo and Order to the PromoManager.
Then depending on the promo type, the Promo manger loads the relevant
sub class e.g. PromoManagerGiftWithPurchase. With our current project
you can only have one promo code, but I guess using weights would be a
good way to manage multiple promos.

In the action:

$promoManager = new PromoManager();
$promotion= Doctrine::getTable('Promotion')->getByCode($code);

$order = $promoManager->applyPromo($order, $promotion);

then in the PromoManager:

protected function getPromoClass($promotion)
{
  $promoClassName = $promotion->class_name;
   ...
   $this->promoClass = new $promoClassName();
}

Is this similar to what you're doing? or not at all?

>
> The reason for this separation is the same as above. Basically, I look
> at propel classes as storage, and I like to code my systems to rely as
> little as possible on one particular storage medium. For example, if I
> were to switch to Doctrine (no intentions), I would only have to swap
> out the "dumb" classes without touching the ones containing the logic.
> Oh, and there's another reason.. for performance reason we cache
> promotions between certain checkout steps, and it's easy to serialize
> simple objects, while serializing propel objects is both tricky and
> introduces potential for stale data.
>
> That help?
> Daniel
>
>
>
>
>
>
> On Mar 30, 6:09 am, Tom Haskins-Vaughan 
> wrote:
>> Thanks, guys! That's a great help. I will most probably take you up on
>> your offer of help! :)  In the meantime, I have a couple of follow on
>> questions:
>>
>> 1. What do you see the benefits of having a separate cart and order objects?
>>
>> 2. The Promotion classes were the logic takes place, are they also
>> model classes or are they separate classes?
>>
>> Thanks again.
>>
>> Tom
>>
>> On Tue, Mar 30, 2010 at 2:00 AM, Richtermeister  wrote:
>> > Hey Tom,
>>
>> > I wrote the ecommerce part of

Re: [symfony-users] How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-01 Thread Tom Haskins-Vaughan
Why don't you just store the email in the username field?

On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia  wrote:
> Hi,
>
> sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
>
> sfGuardUser:
>  actAs: [Timestampable]
>  columns:
>    id:
>      type: integer(4)
>      primary: true
>      autoincrement: true
>    username:
>      type: string(128)
>      notnull: true
>      unique: true
>
>
> As you can see 'username' has the feature "notnull:true". Now i want
> to create a register form that is not using 'username' but the email
> address of the user.
>
> When a user wants to register, it is showed this:
>
> Validation failed in class sfGuardUser
> 1 field had validation error:
> * 1 validator failed on username (notnull)
>
>
> Any idea?
>
>
> Javi
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-03 Thread Tom Haskins-Vaughan
Hi Javi,

While some good points are made in that post, I'm not too concered,
and I will continue to store emails in the username field.

"If you store email in username field, you have to be really careful
when using other plugins that depend on sfGuardPlugin, because chances
are, they’d display the email stored in username field publicly."

I fully agree. However, some plugins provide config to determine which
field to display. If they don't you can always override the username
getter to return a nickname field or something.

public function getUsername()
{
  return $this->Profile->nickname;
}

"It is also not ‘natural’ to code things like:
$this->sendEmailTo($user->getUsername());"

Again, if you don't have an email field there's nothing stopping you
creating a 'virtual getter':

public function getEmail()
{
  return $this->username;
}

I'd be interested to hear what other people think on this issue.

Hope this helps.

Tom

On Sat, Apr 3, 2010 at 6:46 AM, Javier Garcia  wrote:
> I read this (look the paragraph called "AVOID USING USERNAME FIELD FOR
> STORING EMAIL!"):
>
> http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguardplugin/
>
> Is that true?
>
> Javi
>
> On Apr 2, 5:27 am, Tom Haskins-Vaughan 
> wrote:
>> Why don't you just store the email in the username field?
>>
>> On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia  wrote:
>> > Hi,
>>
>> > sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
>>
>> > sfGuardUser:
>> >  actAs: [Timestampable]
>> >  columns:
>> >    id:
>> >      type: integer(4)
>> >      primary: true
>> >      autoincrement: true
>> >    username:
>> >      type: string(128)
>> >      notnull: true
>> >      unique: true
>>
>> > As you can see 'username' has the feature "notnull:true". Now i want
>> > to create a register form that is not using 'username' but the email
>> > address of the user.
>>
>> > When a user wants to register, it is showed this:
>>
>> > Validation failed in class sfGuardUser
>> > 1 field had validation error:
>> > * 1 validator failed on username (notnull)
>>
>> > Any idea?
>>
>> > Javi
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> > To unsubscribe, reply using "remove me" as the subject.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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

2010-04-07 Thread Tom Haskins-Vaughan
Hi there,

I'm working on an ecommerce site that will eventually have an
affiliates programme that will work like so:

  * There will be several affiliates.

  * Each affiliate will be able to 'skin' the site by adding their own
css stylsheet.

  * For each purchase on the website the affiliate will be recorded to
allow us to pay a commission to the affiliate

  * The affiliates will direct traffic to the site be giving out his
subdomain: exampleaffiliate.maindomain.com

I started by following the advanced routing  chapter in the more with
symfony book. I have created a route class and I am setting a request
parameter in a custom filter. But  before I go any further I'm
wondering if it wouldn't be better to store this information in the
User classes and just bypass the routing all together. Does anyone
have any suggestions?

TIA,

Tom

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Re: Symfony 1.4 Switching among multiple databases

2010-04-08 Thread Tom Haskins-Vaughan
If you will be manually setting up each database, then you can just
use multiple connections in your databases.yml file.

On Thu, Apr 8, 2010 at 4:23 AM, MP  wrote:
> Hello all again,
>
>
> really nobody has answer for this...?
>
> Please, if somebody knows it I would be very glad if you can share it.
>
> Thanks again,
>
> Maria Pascual
>
> On Apr 6, 4:11 pm, MP  wrote:
>> Hello all,
>>
>> I am developing an application withSymfony1.4.0 . For this
>> application I need a common database for all clients and then another
>> database for each client. The common database is for the application
>> configuration that is common for all clients, but then each clients
>> have his own customers, products, etc. in his own database.
>>
>> I have been studying howsymfonyworks, googling for an answer and
>> also followed different tutorials, but with no success yet. Does
>> anybody have a solution for this?
>>
>> Thanks,
>>
>> Maria Pascual
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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

2010-04-09 Thread Tom Haskins-Vaughan
Thanks, Tom!

One of the main reasons to do it with subdomains, is to give the
affiliates "ownership" of the way the site looks.

If I do do it with subdomains, and then store the affiliate in for in
sfUser, am I ok to do the subdomain analysis in in the sfUser class?

I mean, can I just check the subdomain in sfUser or *should* I use a
filter for this? I'm looking for the *best* way.

Tom

On Fri, Apr 9, 2010 at 6:16 AM, Tom Ptacnik  wrote:
> I think the classic way of doing this is to store a cookie when the
> user comes (from some link with id which idetify the affiliate). Then
> you can identify him by this cookie, or you can use session - if you
> don't need to identify him after he leaves your website and comes
> later by just typing your website url (not comming over the affiliate
> link again).
>
> You have to think about advantages and disadvantages of both
> solutions.
> - If you have subdomain based affliate identification you dont need to
> store the cookies or remeber the affiliate in the session. But you
> will have maybe more difficulties with routing. And what if the user
> comes later to your web to another affiliate subdomain or without
> affiliate subdomain?
>
>
> On 8 dub, 03:35, Tom Haskins-Vaughan 
> wrote:
>> Hi there,
>>
>> I'm working on an ecommerce site that will eventually have an
>> affiliates programme that will work like so:
>>
>>   * There will be several affiliates.
>>
>>   * Each affiliate will be able to 'skin' the site by adding their own
>> css stylsheet.
>>
>>   * For each purchase on the website the affiliate will be recorded to
>> allow us to pay a commission to the affiliate
>>
>>   * The affiliates will direct traffic to the site be giving out his
>> subdomain: exampleaffiliate.maindomain.com
>>
>> I started by following the advanced routing  chapter in the more with
>> symfony book. I have created a route class and I am setting a request
>> parameter in a custom filter. But  before I go any further I'm
>> wondering if it wouldn't be better to store this information in the
>> User classes and just bypass the routing all together. Does anyone
>> have any suggestions?
>>
>> TIA,
>>
>> Tom
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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

2010-04-12 Thread Tom Haskins-Vaughan
Thanks, Phil. I'll check that out

On Mon, Apr 12, 2010 at 9:29 AM, Phil Moorhouse
 wrote:
> 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 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. you only have to override the bits you want
>> to, which in the case of a branded site could mean something as simple
>> as adding an additional view.yml that overrides the default css path.
>>
>> i.e.
>>
>> apps/appname/config/
>> app.yml
>> view.yml
>> settings.yml
>> /affiliatename/
>>   #override your defaults here
>>   view.yml
>>
>> Might be worth looking into before engineering it yourself.
>>
>> On Apr 8, 2:35 am, Tom Haskins-Vaughan 
>> wrote:
>>
>> > Hi there,
>>
>> > I'm working on an ecommerce site that will eventually have an
>> > affiliates programme that will work like so:
>>
>> >   * There will be several affiliates.
>>
>> >   * Each affiliate will be able to 'skin' the site by adding their own
>> > css stylsheet.
>>
>> >   * For each purchase on the website the affiliate will be recorded to
>> > allow us to pay a commission to the affiliate
>>
>> >   * The affiliates will direct traffic to the site be giving out his
>> > subdomain: exampleaffiliate.maindomain.com
>>
>> > I started by following the advanced routing  chapter in the more with
>> > symfony book. I have created a route class and I am setting a request
>> > parameter in a custom filter. But  before I go any further I'm
>> > wondering if it wouldn't be better to store this information in the
>> > User classes and just bypass the routing all together. Does anyone
>> > have any suggestions?
>>
>> > TIA,
>>
>> > Tom
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] help_language

2010-04-12 Thread Tom Haskins-Vaughan
# apps/frontend/config/settings.yml
all:
  .settings:
default_culture: it_IT

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19


On Mon, Apr 12, 2010 at 10:42 AM, safa boubekri  wrote:
> hello
>
>
>  how can i  change the language of my project from english to an
> onther  language
>
>
> thank you
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] symfony 1.2 db connections timing out

2010-04-14 Thread Tom Haskins-Vaughan
I think I came across this after trying to download a very large file
~100MB between db calls. I don't remember how I fixed it, but I think
I just tried to reconnect manuallly to the db. I'll have a dig around
and see what I can come up with.

Tom

On Tue, Apr 13, 2010 at 12:55 AM, Slavka  wrote:
> Hey guys... im getting the "SQLSTATE[HY000]: General error: 2006 MySQL
> server has gone away"
> In my action i create the required db connections as such
>
> $connection_cdb = Propel::getConnection('propel');
> $connection_stats = Propel::getConnection('cdb_stats');
>
> I then read a big csv file from the server and this takes a marginal
> amount of time (50-60seconds)... , then when i try and do something
> with the db i get the error above...
>
> Is there anyway that i can force for the connections not to time out
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfWidgetFormSelectDoubleList order of items?

2010-04-14 Thread Tom Haskins-Vaughan
How do you see this working from a user's point of view? What order is
supposed to be recorded? I mean how do you anticipate telling the form
the correct order? Would it not be better to do the songs for one gig
at a time and just click to add a song in the order which you want to
store them. You could use Ajax to speed things up a bit.

On Mon, Apr 12, 2010 at 12:16 PM, Robert Heim  wrote:
> any hints or tipps? :-/
>
> Am 09.04.2010 14:45, schrieb comb:
>>
>> Hi
>>
>> I have a many-To-many (Gig-Song) relation and want to use
>> sfWidgetFormSelectDoubleList.
>> It work's fine, but I want to save the order of assignments, too (and
>> not only associated /unassociated ).
>>
>>
>> schema.yml:
>> # many-To-many-relation
>> ...
>> GigSong:
>>   columns:
>>     order_id: { type: integer, notnull: true, default: 0 }
>>     gig_id:  { type: integer, primary: true }
>>     song_id: { type: integer, primary: true }
>> ...
>>
>> As you see I have an order_id. I want to use this field to determine
>> the ordering of played songs on a gig.
>>
>> How can I save the order in which I associated the songs to a gig
>> using the sfWidgetFormSelectDoubleList? Or what may I do alternatively?
>>
>>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] symfony 1.2 db connections timing out

2010-04-14 Thread Tom Haskins-Vaughan
Cool. Nice one.

On Wed, Apr 14, 2010 at 9:41 AM, Richard U  wrote:
> Thanks Tom
>
> I found a way of doing this... by killing the dead connection and
> creating a new one...
>
> Propel::close(); // kill existing
> $connection_cdb = Propel::getConnection(); // create new
>
>
> On Wed, Apr 14, 2010 at 10:16 PM, Tom Haskins-Vaughan
>  wrote:
>> I think I came across this after trying to download a very large file
>> ~100MB between db calls. I don't remember how I fixed it, but I think
>> I just tried to reconnect manuallly to the db. I'll have a dig around
>> and see what I can come up with.
>>
>> Tom
>>
>> On Tue, Apr 13, 2010 at 12:55 AM, Slavka  wrote:
>>> Hey guys... im getting the "SQLSTATE[HY000]: General error: 2006 MySQL
>>> server has gone away"
>>> In my action i create the required db connections as such
>>>
>>> $connection_cdb = Propel::getConnection('propel');
>>> $connection_stats = Propel::getConnection('cdb_stats');
>>>
>>> I then read a big csv file from the server and this takes a marginal
>>> amount of time (50-60seconds)... , then when i try and do something
>>> with the db i get the error above...
>>>
>>> Is there anyway that i can force for the connections not to time out
>>>
>>> --
>>> 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 "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
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>> To unsubscribe, reply using "remove me" as the subject.
>>>
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] call javascript from actionsclass

2010-04-16 Thread Tom Haskins-Vaughan
Can you not just output the options with PHP as HTML in the first page call?

On Fri, Apr 16, 2010 at 5:29 AM, kim  wrote:
> hello
>
> this should be a simple question but i really don't find the solution
> on the internet
>
> I want to start a javascript function from my actions class.
> in my templates i can do this like
> onChange="JavaScript:retrieve(this.options[this.selectedIndex].value);"
>
> but i want to do the same function in my actions class so when people
> enter my page they directly see the result of this action without
> having to click first on a listbox
>
> thnx already
> Greetings
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Question about routing

2010-04-16 Thread Tom Haskins-Vaughan
Did you enable the plugin in the Project config?

On Fri, Apr 16, 2010 at 11:52 AM, Javier Garcia  wrote:
> I don't know if it's related, but i'm gettin also this error after
> clicking on 'Register' button:
>
> Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/
> rs/apps/frontend/modules/sfGuardRegister/actions/actions.class.php
>
> But that class is inside plugins/sfDoctrineGuardExtraPlugin/lib/
> sfGuardExtraMail.class.php.
>
> I cleaned the cache.
>
> Javi
>
>
> On Apr 16, 3:09 pm, Javier Garcia  wrote:
>> Hi,
>>
>> i've installed sfDoctrineGuardExtraPlugin.
>>
>> I don't know what i touched exactly but now when i ask for
>> sfGuardRegister/register this is showed:
>>
>> The route "sf_guard_register" does not exist.
>>
>> To debug my problem I have installed sfDGEP in another project, and i
>> found out that if i remove the line below in
>> plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I
>> get the same error.
>>
>> class sfGuardExtraRouting
>> {
>>    static public function listenToRoutingLoadConfigurationEvent(sfEvent
>> $event)
>>    {
>>
>> $r->prependRoute('sf_guard_register', new sfRoute('/register',
>> array('module' => 'sfGuardRegister', 'action' => 'register')));
>>
>>    }
>>
>> }
>>
>> So... if in my first project i have that line, what is happening exactly?
>>
>> Javi
>>
>> Ubuntu 8.04
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Tom Haskins-Vaughan
Try:

...
  ->leftJoin('p.User u')
...

Tom

On Fri, Apr 16, 2010 at 2:46 PM, Andro Fumero  wrote:
> Schema.yml Im just new to Symfony. please help.--- wasted whole day
> fixing this.
> -
> Profile:
>   connection: doctrine
>   tableName: profile
>   columns:
>     id:
>   type: integer(4)
>   fixed: false
>   unsigned: false
>   primary: false
>   notnull: true
>   autoincrement: true
>     profileid:
>   type: string(50)
>   fixed: false
>   unsigned: false
>   primary: true
>   autoincrement: false
>   relations:
>     User:
>   local: profileid
>   foreign: profileid
>   type: many
> User:
>   connection: doctrine
>   tableName: user
>   columns:
>     id:
>   type: integer(4)
>   fixed: false
>   unsigned: false
>   primary: false
>   notnull: true
>   autoincrement: true
>     userid:
>   type: string(50)
>   fixed: false
>   unsigned: false
>   primary: true
>   autoincrement: false
>     profileid:
>   type: string(50)
>   fixed: false
>   unsigned: false
>   primary: false
>   notnull: true
>   autoincrement: false
>   relations:
>     Profile:
>   local: profileid
>   foreign: profileid
>   type: one
> query--
> $q = Doctrine_Query::create()
>     ->select('u.userid,u.profileid')
>     ->from('Profile p')
>     ->leftJoin('p.user')
>     ->where('u.profileid=?', 'profile-01');
> Gives me out error (try using aliases but it doesnt work "foreignAlias:
> user")
>
> Unknown relation alias user
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: organizing partials in folders

2010-04-17 Thread Tom Haskins-Vaughan
As far as I know there is indeed a forum. I guess enough people are
happy with the mailing list to keep it ticking over ;-)

On Fri, Apr 16, 2010 at 5:57 PM, Joshua  wrote:
> god i freaken hate these group nonsense. why can't symfony guys spring
> for a real forum?
>
> mistake in directory, should be
> project_root/apps/frontend/modules/some_module/templates/folder/
> _headline_news.php
>
> On Apr 16, 5:53 pm, Joshua  wrote:
>> I'm doing this from a module. I would want the partial directory to be
>> something like
>> project_root/apps/frontend/modules/templates/folder/_headline_news.php
>>
>> On Apr 16, 5:51 pm, Joshua  wrote:
>>
>>
>>
>> > include_partial("headline_news");
>>
>> > How can I do this with partial _headline_news.php inside a folder
>> > within templates? If I try
>> > include_partial("folder/headline_news");
>>
>> > The template "_headline_news.php" does not exist or is unreadable in
>> > "".
>>
>> > --
>> > 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 "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
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-24 Thread Tom Haskins-Vaughan
What's on your line /project/apps/manager/templates/layout.php  on line 15?

On Tue, Apr 20, 2010 at 2:24 AM, Dale Attree  wrote:
> Hi everyone,
>
> I downloaded Symfony 1.4.4 from SVN and did the setup as per the
> tutorial.
>
> When I try to access any of my modules, I get the following:
>
> Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must
> not throw an exception in
> /project/apps/manager/templates/layout.php  on line 15
>
> If anybody has a fix for me or can tell me what I am doing wrong, I
> would really appreciate it.
>
> Regards,
> Dale
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: How to access generator.yml variables in view ?

2010-04-24 Thread Tom Haskins-Vaughan
You could add a slot to the layout and then set it from the generated modules.

On Fri, Apr 23, 2010 at 12:50 PM, Richtermeister  wrote:
> If you're already inside the generated module, you should have access
> to the configuration class. that should contain all the info from the
> generator.yml.
>
> Daniel
>
>
> On Apr 23, 3:04 am, John  wrote:
>> Hi Pabz,
>>
>> Thanks for your answer.
>>
>> Apparently I'm not clear : What I'd like to do is to show the value of
>> the list title from the generator.yml file in the layout.
>>
>> So my question is : how can I get a generator.yml variable and put it
>> in the view ?
>>
>> Thanks again,
>> John
>>
>> On 23 avr, 05:10, Pabz Sarquilla  wrote:
>>
>>
>>
>> > Hey John,
>>
>> > is this the one your looking for app/backend/module/config/generator.yml?
>>
>> > Best,
>> > Pabz
>>
>> > On Thu, Apr 22, 2010 at 5:30 PM, John  wrote:
>> > > Hi,
>>
>> > > I'm trying to access the list title and put it in the view. The
>> > > variable is in generator.yml.
>>
>> > >    config:
>> > >      actions: ~
>> > >      fields:  ~
>> > >      list:
>> > >        title: My events
>>
>> > > I'd like to put the title in my layout (apps/backend/templates/
>> > > layout.php).
>>
>> > > How can I achieve this ?
>>
>> > > Hope you can help me,
>> > > Thanks,
>> > > John
>>
>> > > --
>> > > 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 "symfony users" group.
>> > > To post to this group, send email tosymfony-us...@googlegroups.com
>> > > To unsubscribe from this group, send email to
>> > >symfony-users+unsubscr...@googlegroups.com
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/symfony-users?hl=en
>>
>> > --
>> > 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 "symfony users" group.
>> > To post to this group, send email tosymfony-us...@googlegroups.com
>> > To unsubscribe from this group, send email 
>> > tosymfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-25 Thread Tom Haskins-Vaughan
Try removing the closing tag.  If there's any white space after the
closing tag it can sometimes cause problems.

On Sat, Apr 24, 2010 at 2:00 PM, Dale Attree  wrote:
> A closing php tag.
>
> On Apr 24, 1:27 pm, Tom Haskins-Vaughan 
> wrote:
>> What's on your line /project/apps/manager/templates/layout.php  on line 15?
>>
>>
>>
>> On Tue, Apr 20, 2010 at 2:24 AM, Dale Attree  wrote:
>> > Hi everyone,
>>
>> > I downloaded Symfony 1.4.4 from SVN and did the setup as per the
>> > tutorial.
>>
>> > When I try to access any of my modules, I get the following:
>>
>> > Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must
>> > not throw an exception in
>> > /project/apps/manager/templates/layout.php  on line 15
>>
>> > If anybody has a fix for me or can tell me what I am doing wrong, I
>> > would really appreciate it.
>>
>> > Regards,
>> > Dale
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Automated Database Check

2010-04-30 Thread Tom Haskins-Vaughan
+1, I'd use Ajax for this.

On Thu, Apr 29, 2010 at 8:01 PM, Julian Reyes
 wrote:
> you can make a ajax script with a request time (1 minute is a good time) for
> check in the database
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] I'm a newbie, I want to know something about cache

2010-04-30 Thread Tom Haskins-Vaughan
Welcome!

Typically, with a question like that you'd get a suggestion like
"RTFM", but since you're new, here's a freebie:

Either manually delete the relevant file (or all files) in the
symfony/cache directory or run the command symfony cc.

On Fri, Apr 30, 2010 at 1:54 AM, rimoe  wrote:
> hi,
>
> I'm a newbie of symfony,
> I have a website made by symfony,
> I want to change some config, but I found the config file has been
> saved in the folder of cache, when I changed some code in the config
> file
> have no any change at all,
> so,do I need to do any other thing?
> for example clear cache?
>
> Thank you!
>
> rimoe
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: i18n with technical names instead of text

2010-04-30 Thread Tom Haskins-Vaughan
I've been thinking about using 'keys' instead of full sentences:

  echo __('layout.greeting');

But is this an acceptable/symfony way to do it?

On Fri, Apr 30, 2010 at 10:45 AM, rafaelgou  wrote:
> You can simply user:
> _('mainPage.linkToLogin' )
> in your code.
>
> But if you want to be more explicit about non translated strings (warn
> users about non translated strings), why can't use prefix/suffix as we
> can see in docs:
>
> http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_i18n
>
> []'s
>
> Rafael Goulart from Brazil
>
>
> On 30 abr, 06:27, "Daniel Kucharski"  wrote:
>> Hi,
>>
>> Is it possible to use technical names such as 'loginForm.sendButton' or
>> 'mainPage.linkToLogin' instead of the actual text for the default culture
>> in any view template  and have it translated through I18n based upon the
>> culture?
>>
>> Kind regards,
>>
>> Daniel
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: i18n with technical names instead of text

2010-04-30 Thread Tom Haskins-Vaughan
Thanks for your input, Russ.

I haven't used i18n much but I've taken over a CI project that uses
keys rather than full sentences.

I guess the benefit I was looking at is maintenance of the
dictionaries, but I'll bear your advice in mind.

Tom

On Fri, Apr 30, 2010 at 1:48 PM, rooster (Russ)  wrote:
>
>
> On Apr 30, 7:37 pm, Tom Haskins-Vaughan 
> wrote:
>> I've been thinking about using 'keys' instead of full sentences:
>>
>>   echo __('layout.greeting');
>>
>> But is this an acceptable/symfony way to do it?
>>
>>
>
> Symfony won't tell you off if you do, it's up to you. There are pros
> and cons really...
>
> The biggest "con" is that you have no fallback translation, so you may
> find someone looking at some language with "homepage.welcomemessage"
> instead of the default which you would probably have written in
> English. This means you also have to create an English trenslation,
> which you wouldn't have to do if your base strings were English in the
> first place. Another potential downside is with reusability. Depending
> on your implementation you may have "loginform.submitbutton" and
> "registrationform.submitbutton" which will take up two spaces in your
> translation file whereas otherwise they both would have been covered
> by __("Submit"). This has a customisation advantage (which you could
> also use catalogues for), but a reusability disadvantage, so it's
> really down to your architecture.
>
> Just weigh it up and do what fits best for your needs - it's not a
> "best practice" issue in my opinion, just a design decision.
>
> Russ.
>
>>
>>
>>
>> On Fri, Apr 30, 2010 at 10:45 AM, rafaelgou  wrote:
>> > You can simply user:
>> > _('mainPage.linkToLogin' )
>> > in your code.
>>
>> > But if you want to be more explicit about non translated strings (warn
>> > users about non translated strings), why can't use prefix/suffix as we
>> > can see in docs:
>>
>> >http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_...
>>
>> > []'s
>>
>> > Rafael Goulart from Brazil
>>
>> > On 30 abr, 06:27, "Daniel Kucharski"  wrote:
>> >> Hi,
>>
>> >> Is it possible to use technical names such as 'loginForm.sendButton' or
>> >> 'mainPage.linkToLogin' instead of the actual text for the default culture
>> >> in any view template  and have it translated through I18n based upon the
>> >> culture?
>>
>> >> Kind regards,
>>
>> >> Daniel
>>
>> >> --
>> >> 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 "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
>> >> For more options, visit this group 
>> >> athttp://groups.google.com/group/symfony-users?hl=en
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] html in toString?

2010-05-02 Thread Tom Haskins-Vaughan
I would use helpers rather than putting html in the model:

// in MyUserHelper.php:

function user_format(User $user)
{
  return ''.$user->name.'';
}

// In your template:

echo user_format($user);

On Sun, May 2, 2010 at 5:10 AM, Daniel Lohse
 wrote:
> That is symfony's output escaping at work in the view layer. You'll need to 
> read up on that here: 
> http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping
>
> Cheers, Daniel
>
> On 02.05.2010, at 10:44, comb wrote:
>
>> Hey :-)
>>
>> How can I use some html in a __toString methode?
>> I want to link a user-profile in the Users-toString-Methode, but the
>> html is escaped :-/
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Undefined offset?

2010-05-03 Thread Tom Haskins-Vaughan
What does your select statement look like?

On Sun, May 2, 2010 at 5:43 PM, Parijat Kalia  wrote:
> Hey guys,
>
> I have a DB table called configurations , that has the following columns
>
> config_id -tiny int   auto_incremented and primary key
> admin_id   varchar not null
> topics  varchar  not null
> languages  tinyint   not null
> courses varchar(255) not null
> group_id int(11)  not null
>
> In a certain action, I have a doselect query, which selects columns topics,
> languages, courses
>
> what I get as an error is this:
>
> Notice: Undefined offset: 3 in
> C:\dev\sfproject\lib\model\om\BaseConfigurations.php on line 317
>
> Notice: Undefined offset: 4 in
> C:\dev\sfproject\lib\model\om\BaseConfigurations.php on line 318
>
> Notice: Undefined offset: 5 in
> C:\dev\sfproject\lib\model\om\BaseConfigurations.php on line 319
>
> The lines 317 through 319 on the BaseConfigurations.php page are
>
> $this->languages = ($row[$startcol + 3] !== null) ? (int) $row[$startcol +
> 3] : null;
>             $this->courses = ($row[$startcol + 4] !== null) ? (string)
> $row[$startcol + 4] : null;
>             $this->group_id = ($row[$startcol + 5] !== null) ? (int)
> $row[$startcol + 5] : null;
>
>
>
> have no clue what's up with this! Anyone with an understanding of thsi,
> pleas help!
>
> Thanks a lot
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How to customize generate-module?

2010-05-03 Thread Tom Haskins-Vaughan
Did you try symfony generate:module frontend mymodule?

On Mon, May 3, 2010 at 7:35 AM, saki  wrote:
> Hi!
>
> I use the next command to generate a new module:
> symfony doctrine:generate-module --with-show --non-verbose-templates
> frontend xy xyz
>
> Unfortunately after this, I have to modify almost all the created
> files a bit. How can I make a module skeleton? How can change the
> module creator process?
>
> Thank you in advance!
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Doctrine versionable on whole project

2010-05-10 Thread Tom Haskins-Vaughan
Hi all,

I would like to use some kind of versioning over a complete schema
rather than a single table. I'd like to to something like the Doctrine
Versionable behaviour, but using a global revision number instead,
similar to subversion.

Has anyone done anything like this?

Thanks,

Tom

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Doctrine won't load 3-level heirarchy as data fixture

2010-05-10 Thread Tom Haskins-Vaughan
Can you show us your code?

On Mon, May 10, 2010 at 10:51 AM, grahamj42  wrote:
> I'm trying to build a simple app to help me learn Symphony.
>
> I have a Parent->Child->Grandchild set of objects. The model builds
> correctly and the tables are created with the appropriate foreign key
> constraints.
>
> If my data fixture contains just Parent and Child instances, the data
> load correctly.
>
> If I add a Grandchild instance, I get 'Invalid row key specified'...
>
> Is this a known limitation of Doctrine?
>
> I'm using Symfony 1.4.4 with PHP 5.3.2 on Windows XP.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Do doctrine record event listeners use transactions

2010-05-10 Thread Tom Haskins-Vaughan
Hi all,

Having read the chapter in More with symfony 1.3 & 1.4 on Doctrine Behaviours:

http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage

I just have a quick question. When you use the doctrine event
listeners, are the resulting inserts/updates wrapped in a transaction?

Thanks.

Tom
'

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
Try this:

WttListWtt:
  pc-rail-barnham-1930-weekday:
WttlistBox: pc-rail-barnham
period: 1930 MF
year: 1930

On Mon, May 10, 2010 at 5:32 PM, grahamj42  wrote:
> During my tests, I specified all the attributes of the relations,
> although I know I don't need to be so verbose.
>
> 
>
> # schema.yml
> # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
> # $Revision: 47 $
> #
> options:
>  type: MyISAM
>
> WttlistSimulation:
>  actAs:
>    sluggable:
>      fields: [name]
>  columns:
>    name: { type: string(32), notnull: true }
>
> WttlistBox:
>  actAs:
>    sluggable:
>      fields: [name]
>  columns:
>    name: { type: string(64), notnull: true }
>    simulation_id: { type: integer, notnull: true }
>  relations:
>    WttlistSimulation:
>      class: WttlistSimulation
>      local: simulation_id
>      foreign: id
>      foreignAlias: WttlistBoxes
>      foreignType: many
>
> WttlistWtt:
>  actAs:
>    sluggable:
>      fields: [period]
>  columns:
>    box_id: { type: integer, notnull: true }
>    period: { type: string(64), notnull: true }
>    year: { type: date, notnull: true }
>  relations:
>    WttlistBox:
>      class: WttlistBox
>      local: box_id
>      foreign: id
>      foreignAlias: wtts
>      foreignType: many
> 
>
> If I uncomment the last section of data.yml, I get an error ' Invalid
> row key specified: (wttlist_box) barnham, referred to in (wttlist_wtt)
> pc-rail-barnham-1930-weekday'
>
> 
>
> # data.yml
> # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
> # $Revision: 47 $
> #
> WttlistSimulation:
>  pc-rail:
>    name: PC-Rail
>  simsig:
>    name: SimSig
>
> WttlistBox:
>  pc-rail-barnham:
>    name: Barnham
>    WttlistSimulation: pc-rail
>  simsig-bristol:
>    name: Bristol
>    WttlistSimulation: simsig
>
> #WttListWtt:
> #  pc-rail-barnham-1930-weekday:
> #    WttlistBox: barnham
> #    period: 1930 MF
> #    year: 1930
>
> 
>
> Data load works fine with the Grandchild record commented out as
> above. This frustrated me for a number of hours. The documentation on
> expressing relations in data fixtures is not very clear.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How to specify wich or button is gonna validate my form

2010-05-11 Thread Tom Haskins-Vaughan
Use javascript to disable the form submission when you click the Retour button

On Tue, May 11, 2010 at 3:40 AM, François  wrote:
> Hi,
>
> I have a little problem, here how my code looks like :
>
> 
>        
>                Create your account
>                
>                        
>                                
>                                        
>                                                 $widget->renderLabel()?>
>                                        
>                                        render()?>
>                                
>                        
>                
>                
>                        
>                        Retour
>                
>        
> 
>
> Nothing special I guess, the problem is that it try to validate my
> form even if I click on the  (which is here for JavaScript
> issues). How can I tell him to validate only when I click on the
> submit ?
>
> Thanks :)
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How to do redirect with POST method (for sending parameters)

2010-05-11 Thread Tom Haskins-Vaughan
The point is, what you're trying to do shouldn't be transparent to the
user. Perhaps if you outline you're problem more, we can help find a
work-around.

On Tue, May 11, 2010 at 3:44 AM, Dong YANG  wrote:
> If anyone has any suggestion please?
>
> Thanks and regards,
>
> JoJo
>
> 2010/5/10 Dong YANG 
>>
>> Hello Eno,
>>
>>     Yes, exact. That's why I think that it is not a good solution,
>> because i want to make the redirect transparent to user.
>>
>>    Regards,
>>
>> JoJo
>>
>> 2010/5/10 Eno 
>>>
>>> On Mon, 10 May 2010, Dong YANG wrote:
>>>
>>> >        if i called simply redirect without code 307, it won't work
>>> > because
>>> > nothing send to new page. But with 307, some browser like firefox, it
>>> > will
>>> > display an alert before redirecting, it is annoying.
>>>
>>> That's because according to the HTTP spec, when you do a redirect with
>>> 307
>>> code, the browser should get a confirmation from the user. IE might not
>>> do
>>> it because Microsoft doesn't really care about following specs :-)
>>>
>>>
>>>
>>> --
>>>
>>>
>>> --
>>> 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 "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
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
It's not really a case of concatenating. It's just a case of using the
key of the parent object. It could be anything really.The following
would work too:

WttlistBox:
 no_particular_key:
   name: Barnham
   WttlistSimulation: pc-rail
 simsig-bristol:
   name: Bristol
   WttlistSimulation: simsig

WttListWtt:
  pc-rail-barnham-1930-weekday:
WttlistBox: no_particular_key
period: 1930 MF
year: 1930

On Tue, May 11, 2010 at 10:20 AM, grahamj42  wrote:
> Tom,
>
> Thanks, that fixed the key error. I had to change the date value to
> '1930-01-01' (including the quotes) and then it loaded.
>
> This is an area that really needs documenting; I would never have
> thought to concatenate the keys at the two levels above, and the code
> is pretty opaque.
>
> The aim of 'less magic' in Symfony 2.0 is a good one, in my opinion.
>
> Regards,
> Graham
>
> On May 11, 2:28 pm, Tom Haskins-Vaughan 
> wrote:
>> Try this:
>>
>> WttListWtt:
>>   pc-rail-barnham-1930-weekday:
>>     WttlistBox: pc-rail-barnham
>>     period: 1930 MF
>>     year: 1930
>>
>>
>>
>> On Mon, May 10, 2010 at 5:32 PM, grahamj42  wrote:
>> > During my tests, I specified all the attributes of the relations,
>> > although I know I don't need to be so verbose.
>>
>> > 
>>
>> > # schema.yml
>> > # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
>> > # $Revision: 47 $
>> > #
>> > options:
>> >  type: MyISAM
>>
>> > WttlistSimulation:
>> >  actAs:
>> >    sluggable:
>> >      fields: [name]
>> >  columns:
>> >    name: { type: string(32), notnull: true }
>>
>> > WttlistBox:
>> >  actAs:
>> >    sluggable:
>> >      fields: [name]
>> >  columns:
>> >    name: { type: string(64), notnull: true }
>> >    simulation_id: { type: integer, notnull: true }
>> >  relations:
>> >    WttlistSimulation:
>> >      class: WttlistSimulation
>> >      local: simulation_id
>> >      foreign: id
>> >      foreignAlias: WttlistBoxes
>> >      foreignType: many
>>
>> > WttlistWtt:
>> >  actAs:
>> >    sluggable:
>> >      fields: [period]
>> >  columns:
>> >    box_id: { type: integer, notnull: true }
>> >    period: { type: string(64), notnull: true }
>> >    year: { type: date, notnull: true }
>> >  relations:
>> >    WttlistBox:
>> >      class: WttlistBox
>> >      local: box_id
>> >      foreign: id
>> >      foreignAlias: wtts
>> >      foreignType: many
>> > 
>>
>> > If I uncomment the last section of data.yml, I get an error ' Invalid
>> > row key specified: (wttlist_box) barnham, referred to in (wttlist_wtt)
>> > pc-rail-barnham-1930-weekday'
>>
>> > 
>>
>> > # data.yml
>> > # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
>> > # $Revision: 47 $
>> > #
>> > WttlistSimulation:
>> >  pc-rail:
>> >    name: PC-Rail
>> >  simsig:
>> >    name: SimSig
>>
>> > WttlistBox:
>> >  pc-rail-barnham:
>> >    name: Barnham
>> >    WttlistSimulation: pc-rail
>> >  simsig-bristol:
>> >    name: Bristol
>> >    WttlistSimulation: simsig
>>
>> > #WttListWtt:
>> > #  pc-rail-barnham-1930-weekday:
>> > #    WttlistBox: barnham
>> > #    period: 1930 MF
>> > #    year: 1930
>>
>> > 
>>
>> > Data load works fine with the Grandchild record commented out as
>> > above. This frustrated me for a number of hours. The documentation on
>> > expressing relations in data fixtures is not very clear.
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.com
>>
>> You received

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
Did you try the symfony + Doctrine book?

http://www.symfony-project.org/doctrine/1_2/en/05-Data-Fixtures

On Tue, May 11, 2010 at 12:43 PM, grahamj42  wrote:
> Ah, when I saw 'invalid row key' in the error message, I immediately
> thought of the primary key of the table, rather than the fixture tag.
> Another issue stemming from lack of documentation.
>
> Thanks, again.
>
> On May 11, 4:45 pm, Tom Haskins-Vaughan 
> wrote:
>> It's not really a case of concatenating. It's just a case of using the
>> key of the parent object. It could be anything really.The following
>> would work too:
>>
>> WttlistBox:
>>  no_particular_key:
>>    name: Barnham
>>    WttlistSimulation: pc-rail
>>  simsig-bristol:
>>    name: Bristol
>>    WttlistSimulation: simsig
>>
>> WttListWtt:
>>   pc-rail-barnham-1930-weekday:
>>     WttlistBox: no_particular_key
>>     period: 1930 MF
>>     year: 1930
>>
>>
>>
>> On Tue, May 11, 2010 at 10:20 AM, grahamj42  wrote:
>> > Tom,
>>
>> > Thanks, that fixed the key error. I had to change the date value to
>> > '1930-01-01' (including the quotes) and then it loaded.
>>
>> > This is an area that really needs documenting; I would never have
>> > thought to concatenate the keys at the two levels above, and the code
>> > is pretty opaque.
>>
>> > The aim of 'less magic' in Symfony 2.0 is a good one, in my opinion.
>>
>> > Regards,
>> > Graham
>>
>> > On May 11, 2:28 pm, Tom Haskins-Vaughan 
>> > wrote:
>> >> Try this:
>>
>> >> WttListWtt:
>> >>   pc-rail-barnham-1930-weekday:
>> >>     WttlistBox: pc-rail-barnham
>> >>     period: 1930 MF
>> >>     year: 1930
>>
>> >> On Mon, May 10, 2010 at 5:32 PM, grahamj42  wrote:
>> >> > During my tests, I specified all the attributes of the relations,
>> >> > although I know I don't need to be so verbose.
>>
>> >> > 
>>
>> >> > # schema.yml
>> >> > # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
>> >> > # $Revision: 47 $
>> >> > #
>> >> > options:
>> >> >  type: MyISAM
>>
>> >> > WttlistSimulation:
>> >> >  actAs:
>> >> >    sluggable:
>> >> >      fields: [name]
>> >> >  columns:
>> >> >    name: { type: string(32), notnull: true }
>>
>> >> > WttlistBox:
>> >> >  actAs:
>> >> >    sluggable:
>> >> >      fields: [name]
>> >> >  columns:
>> >> >    name: { type: string(64), notnull: true }
>> >> >    simulation_id: { type: integer, notnull: true }
>> >> >  relations:
>> >> >    WttlistSimulation:
>> >> >      class: WttlistSimulation
>> >> >      local: simulation_id
>> >> >      foreign: id
>> >> >      foreignAlias: WttlistBoxes
>> >> >      foreignType: many
>>
>> >> > WttlistWtt:
>> >> >  actAs:
>> >> >    sluggable:
>> >> >      fields: [period]
>> >> >  columns:
>> >> >    box_id: { type: integer, notnull: true }
>> >> >    period: { type: string(64), notnull: true }
>> >> >    year: { type: date, notnull: true }
>> >> >  relations:
>> >> >    WttlistBox:
>> >> >      class: WttlistBox
>> >> >      local: box_id
>> >> >      foreign: id
>> >> >      foreignAlias: wtts
>> >> >      foreignType: many
>> >> > 
>>
>> >> > If I uncomment the last section of data.yml, I get an error ' Invalid
>> >> > row key specified: (wttlist_box) barnham, referred to in (wttlist_wtt)
>> >> > pc-rail-barnham-1930-weekday'
>>
>> >> > 
>>
>> >> > # data.yml
>> >> > # $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
>> >> > # $Revision: 47 $
>> >> > #
>> >> > WttlistSimulation:
>> >> >  pc-rail:
>> >> >    name: PC-Rail
>> >> >  simsig:
>> >> >    name: SimSig
>>
>> >> > WttlistBox:
>> >> >  pc-rail-barnham:
>> >> >    name: Barnham
>> >> >    WttlistSimul

Re: [symfony-users] problem with plugin install

2010-05-11 Thread Tom Haskins-Vaughan
Did you enable them in your ProjectConfiguration class?

On Tue, May 11, 2010 at 10:08 AM, .  wrote:
> Hi!
>
>  I use the (1.4.4) Symfony, but I can't manage none of the plugins to
> install.
>
>  symfony plugin:install (one of the plugins)
>
>  ,the result for this:
>
>  >> plugin    installing plugin "(one of the plugins)"
>
>  ,then:
>
>  symfony plugin:list
>
>  ,the result:
>
>  Installed plugins:
>
>  , an empty list...
>
>  What is the problem? Why is that?
>
> Thanks for your help in advance!
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Doctrine and Guard Group problem

2010-05-11 Thread Tom Haskins-Vaughan
How would you do this in SQL?

On Tue, May 11, 2010 at 3:58 AM, Laurent DELAGE  wrote:
> Hi all !
> I've a problem more specificaly with doctrine.
>
> I've never solved it "the right way".
>
> I want to get all users, but those who have a particular permission,
> that i know only by mail.
>
> More generally, i don't know nor find how to find records who are not
> linked to a specific others...
>
> I parse Symfony snippets, doctrine docs for a week but .
>
> Thanks in advance !
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Problem while loading fixture with the plugin sfDoctrineGuardPlugin

2010-05-12 Thread Tom Haskins-Vaughan
Try:

sfGuardUserGroup:
 sfGuardUserGroup_admin_admin:
   User: sfGuardUser_admin
   Group: sfGuardGroup_admin

On Wed, May 12, 2010 at 6:14 AM, Etienne  wrote:
> Hey everyone,
> I've a problem while loading a set of fixture in my project. When I
> run the command "./symfony doctrine:data-load", it doesn't work and
> displays the following error:
> Unknown record property / related component "sfguarduser" on
> "sfGuardUserGroup"
>
> But when I run the command "./symfony doctrine:build --all --and-load
> --no-confirmation", it does work... and I can't understand the
> difference between these two commands.
>
> The schema is the same as in the plugin :
> http://trac.symfony-project.org/browser/plugins/sfDoctrineGuardPlugin/trunk/config/doctrine/schema.yml
> And the fixtures are:
> sfGuardUser:
>  sfGuardUser_admin:
>    username: admin
>    password: admin
>    is_active: '1'
>    is_super_admin: '1'
>
> sfGuardGroup:
>  sfGuardGroup_admin:
>    name: Admin
>    description: Blablou
>
> sfGuardUserGroup:
>  sfGuardUserGroup_admin_admin:
>    sfGuardUser: sfGuardUser_admin
>    sfGuardGroup: sfGuardGroup_admin
>
>
> Can anybody help me to figure this out?
>
> Thanks
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] problem with plugin install

2010-05-12 Thread Tom Haskins-Vaughan
Did you clear your cache?

On 5/12/10, .  wrote:
> I tried it now, but I got the same result. :(
>
> Is there a step-by-step guide about how to install plugin for Symfony
> 1.4.4 ?
>
> Thanks!
>
> On máj. 11, 18:59, Tom Haskins-Vaughan 
> wrote:
>> Did you enable them in your ProjectConfiguration class?
>>
>>
>>
>> On Tue, May 11, 2010 at 10:08 AM, .  wrote:
>> > Hi!
>>
>> >  I use the (1.4.4) Symfony, but I can't manage none of the plugins to
>> > install.
>>
>> >  symfony plugin:install (one of the plugins)
>>
>> >  ,the result for this:
>>
>> >  >> plugin    installing plugin "(one of the plugins)"
>>
>> >  ,then:
>>
>> >  symfony plugin:list
>>
>> >  ,the result:
>>
>> >  Installed plugins:
>>
>> >  , an empty list...
>>
>> >  What is the problem? Why is that?
>>
>> > Thanks for your help in advance!
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Do doctrine record event listeners use transactions

2010-05-13 Thread Tom Haskins-Vaughan
Anyone? :)

On May 10, 1:20 pm, Tom Haskins-Vaughan 
wrote:
> Hi all,
>
> Having read the chapter in More with symfony 1.3 & 1.4 on Doctrine Behaviours:
>
> http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-D...
>
> I just have a quick question. When you use the doctrine event
> listeners, are the resulting inserts/updates wrapped in a transaction?
>
> Thanks.
>
> Tom
> '
>
> --
> 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 "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
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Doctrine Behavior example in symfony 1.4 book - CountCache

2010-05-16 Thread Tom Haskins-Vaughan
I have the same problem. I stumpled across this:

  
http://forum.symfony-project.org/index.php?t=rview&goto=90931&th=24670#msg_90931

But I'd love to know if there was a cleaner way to do it. Any Doctrine
developers out there got any suggestions?

Thanks,

Tom

On Apr 5, 8:03 am, mstralka  wrote:
> Hi,
>
> An example in "The More with symfony" book chapter 8 shows how to
> create a doctrine behavior called CountCache that counts the number of
> Posts a Thread has related to 
> it:http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-D...
>
> I'm trying to use this behavior in my domain model but the sample code
> doesn't provide getters and setters for the "num_posts" column.  For
> example, I want to be able to do this:
>
> getNumPosts() ?>
>
> But a 500 exception is thrown which reads:
> Unknown record property / related component "num_posts" on "Thread"
>
> Am I missing something?
>
> Thanks

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Jobeet Day 7: Unable to find the JobeetCategory object with the following parameters "array ( 'slug' => 'design',)").

2010-05-20 Thread Tom Haskins-Vaughan
Look in your database. Do you have a jobeet_category record with a
slug 'design'?

On Thu, May 20, 2010 at 2:54 PM, asuarez  wrote:
> Hi.
>
> I finished day 7 of the tutorial (1.4 doctrine) and it's not working,
> I get an 404 error and the message 'Unable to find the JobeetCategory
> object with the following parameters "array ( 'slug' => 'design',)").'
> in my log.
>
> Can somebody help me?
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Hey guys,

In my everlasting quest for doing things the right way, I'm just
wondering where I should put a WSDL file in a plugin. I know it's not
really a big deal, but hey...

My initial feeling is to put it in

  myPlugin/data/

Any thoughts?

Thanks,

Tom

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Thanks, Daniel! :)

On Fri, May 21, 2010 at 10:30 AM, Daniel Lohse
 wrote:
> Yeah, the data directory seems to be the correct location for such a file. :)
>
> On 21.05.2010, at 16:11, Tom Haskins-Vaughan wrote:
>
>> Hey guys,
>>
>> In my everlasting quest for doing things the right way, I'm just
>> wondering where I should put a WSDL file in a plugin. I know it's not
>> really a big deal, but hey...
>>
>> My initial feeling is to put it in
>>
>>  myPlugin/data/
>>
>> Any thoughts?
>>
>> Thanks,
>>
>> Tom
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] edit id in admin

2010-05-21 Thread Tom Haskins-Vaughan
I'm intrigued...why would you want to change the id?

On Fri, May 21, 2010 at 1:51 PM, Mihai Rusoaie  wrote:
> Hello!
>
> When I insert an new object in the database, I want the id to be
> assigned automatically (autoincrement).
>
> In the edit form, however, I want to be able to change the id.
>
> I tried to override the BaseForm class widget and validator with:
>
>        $this->widgetSchema['id'] = new sfWidgetFormInputText();
>        $this->validatorSchema['id'] = new sfValidatorString();
>
>  but with no success (I could see field 'id' in my form, but symfony
> won't write it in the DB).
>
> Thank you!
>
> Mihai
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] strip_tags validator

2010-05-24 Thread Tom Haskins-Vaughan
Hi all,

I need to call strip_tags() on a form field before I put it in my
database, only allowing  and  tags. I've done this by
creating a custom validator (see below). It works fine, but is there a
better way to do this?

Thanks,

Tom

protected function doClean($value)
{
  return strip_tags($value, $this->getOption('allowable_tags'));
}

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread Tom Haskins-Vaughan
Yes, it should be fairly easy.

  1. create one or more application for each domain name

  2. point your domain name's to the same place

  3. check in your index.php which domain name you have and launch the
appropriate application

Tom

On Tue, May 25, 2010 at 5:21 AM, mehdi hadef  wrote:
> Hi all,
> I would like to know if there is an easy way using symfony to create 2
> website (with different domain name) that sharing the same database and
> session/cookie variable.
> Thanks
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] best practice to save nb_comments

2010-05-25 Thread Tom Haskins-Vaughan
Is this what you're looking for?

http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage

On Tue, May 25, 2010 at 6:42 AM, Stéphane  wrote:
> Hi,
> No, think about listeners on Doctrine_Record and the postInsert hook.
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> On Tue, May 25, 2010 at 2:34 AM, comb  wrote:
>>
>> Hi!
>>
>> I have a Commentable behavior.
>> Now I want to add a new column nb_comments to a Record with this
>> behavior for performance reasons.
>>
>>        public function setTableDefinition() {
>>                $this->hasColumn('nb_comments', 'integer', null,
>> array('default' =>
>> 0));
>> ...
>>
>> But where is the best place to increment/decrement the nb_comments
>> attribute? in the Comment-Module-Actions during the processForm/
>> executeDelete is a little dirty, isn't it??
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
D'oh! I always have a tendency to over complicate things! Thanks, Gabriel!

On Mon, May 24, 2010 at 6:45 PM, pghoratiu  wrote:
> You could do it either at object->save() or better at object->set*()
> something like:
>
> public function setDescription($value)
> {
>   parent::setDescription(strip_tags($value));
> }
>
>    gabriel
>
>
> On May 24, 11:56 pm, Tom Haskins-Vaughan 
> wrote:
>> Hi all,
>>
>> I need to call strip_tags() on a form field before I put it in my
>> database, only allowing  and  tags. I've done this by
>> creating a custom validator (see below). It works fine, but is there a
>> better way to do this?
>>
>> Thanks,
>>
>> Tom
>>
>> protected function doClean($value)
>> {
>>   return strip_tags($value, $this->getOption('allowable_tags'));
>>
>> }
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
Instead of using

  mysite.com/account/profile/5

I would use

  mysite.com/account/profile

And get the user_id from the sessions:

  $this->profile = $this-GetUser()->getProfile();

On Mon, May 24, 2010 at 6:37 PM, Samuel Morhaim
 wrote:
> If I have something such as
>
> mysite.com/account/profile/5
>
> What prevents me from switching the /5 for a /4   /3 .. etc.. to call the
> profile for other Id's?  How do you prevent this from happening?
>
> thanks.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
> Using setDescription on model level probably doesn't work for the form
> since form data is loaded into the object by calling ->fromArray()
> which does not necessarily call mutators as far as Doctrine is
> concerned (not sure what Propel does here).

Do you mean that it won't work if I use the model class?


On Tue, May 25, 2010 at 9:22 AM, Johannes
 wrote:
> Forms allow you to perform that kind of change in updateXXXColumn
> methods, e.g.
>
> public function updateDescriptionColumn($value)
> {
>  return strip_tags($value);
> }
>
> Using setDescription on model level probably doesn't work for the form
> since form data is loaded into the object by calling ->fromArray()
> which does not necessarily call mutators as far as Doctrine is
> concerned (not sure what Propel does here).
>
> Johannes
>
> On May 25, 2:36 pm, Tom Haskins-Vaughan 
> wrote:
>> D'oh! I always have a tendency to over complicate things! Thanks, Gabriel!
>>
>>
>>
>> On Mon, May 24, 2010 at 6:45 PM, pghoratiu  wrote:
>> > You could do it either at object->save() or better at object->set*()
>> > something like:
>>
>> > public function setDescription($value)
>> > {
>> >   parent::setDescription(strip_tags($value));
>> > }
>>
>> >    gabriel
>>
>> > On May 24, 11:56 pm, Tom Haskins-Vaughan 
>> > wrote:
>> >> Hi all,
>>
>> >> I need to call strip_tags() on a form field before I put it in my
>> >> database, only allowing  and  tags. I've done this by
>> >> creating a custom validator (see below). It works fine, but is there a
>> >> better way to do this?
>>
>> >> Thanks,
>>
>> >> Tom
>>
>> >> protected function doClean($value)
>> >> {
>> >>   return strip_tags($value, $this->getOption('allowable_tags'));
>>
>> >> }
>>
>> >> --
>> >> 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 "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
>> >> For more options, visit this group 
>> >> athttp://groups.google.com/group/symfony-users?hl=en
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
As Phil says:

$profile = $this->getRoute()->getObject();

if ($this->getUser() != $profile->getUser())
{
  // return error 404
}

On Tue, May 25, 2010 at 9:42 AM, Samuel Morhaim
 wrote:
> Thanks for the replies.
>
> Slugs would work for the profile and certain areas and just simply /profile
> would also work for the profile, but for example, I have a "Subscribers"
> addressbook, where the only required field is their mobile number, then
> something like
>
> mysite/subscribers/301212    <-- nothing stops another user from typing
> random numbers to see if they exist
>
> Is there a generic way to avoid this?  I guess using GET? but i am not sure.
>
>
> On Mon, May 24, 2010 at 10:59 PM, Eno  wrote:
>>
>> On Mon, 24 May 2010, Samuel Morhaim wrote:
>>
>> > mysite.com/account/profile/5
>> >
>> > What prevents me from switching the /5 for a /4   /3 .. etc.. to call
>> > the
>> > profile for other Id's?  How do you prevent this from happening?
>>
>> You should never use real database IDs, use slugs:
>>
>> http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System
>>
>>
>>
>> --
>> A
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
But surely hashing (and slugs) is just security by obscurity. Whether
you guess another person's profile id/hash/slug, or get a link from
somewhere, you should not be able to view someone else's profile.

On Tue, May 25, 2010 at 10:37 AM, Tofuwarrior  wrote:
> If in some circumstances you find you need to pass an id but don't
> want people 'browsing' by changing id.
> You can create a hash of the file id and some 'secret' string ( i
> often use the current logged in user so it varies) if the hashed id
> matches the submitted hash then you know that they haven't just
> changed the id.
>
> there are some good posts here:
> http://www.php.net/manual/en/function.hash-hmac.php
>
> TW
>
>
>
>
>
>
> On May 25, 1:38 pm, Tom Haskins-Vaughan 
> wrote:
>> Instead of using
>>
>>   mysite.com/account/profile/5
>>
>> I would use
>>
>>   mysite.com/account/profile
>>
>> And get the user_id from the sessions:
>>
>>   $this->profile = $this-GetUser()->getProfile();
>>
>> On Mon, May 24, 2010 at 6:37 PM, Samuel Morhaim
>>
>>
>>
>>  wrote:
>> > If I have something such as
>>
>> > mysite.com/account/profile/5
>>
>> > What prevents me from switching the /5 for a /4   /3 .. etc.. to call the
>> > profile for other Id's?  How do you prevent this from happening?
>>
>> > thanks.
>>
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread Tom Haskins-Vaughan
Try sfWidgetFormI18nChoiceLanguage

On Tue, May 25, 2010 at 11:33 AM, HAUSa
 wrote:
> By the way, I use Symfony 1.4 :)
>
>
> On 25 mei, 17:32, HAUSa 
> wrote:
>> In form I use the sfWidgetFormI18nLanguageChoice.
>> But, when I try to load the page, it says the
>> sfWidgetFormI18nLanguageChoice class cannot be found.
>>
>> How is that possible?
>>
>> --
>> 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 "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
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread Tom Haskins-Vaughan
Actually, no, Eno is right. You can't share session cookies between domains.

On Tue, May 25, 2010 at 11:54 AM, mehdi hadef  wrote:
> Could I share cookies and session between the two domain names with this
> method ?
>
> 2010/5/25 Tom Haskins-Vaughan 
>>
>> Yes, it should be fairly easy.
>>
>>  1. create one or more application for each domain name
>>
>>  2. point your domain name's to the same place
>>
>>  3. check in your index.php which domain name you have and launch the
>> appropriate application
>>
>> Tom
>>
>> On Tue, May 25, 2010 at 5:21 AM, mehdi hadef 
>> wrote:
>> > Hi all,
>> > I would like to know if there is an easy way using symfony to create 2
>> > website (with different domain name) that sharing the same database and
>> > session/cookie variable.
>> > Thanks
>> >
>> > --
>> > 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 "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
>> > For more options, visit this group at
>> > http://groups.google.com/group/symfony-users?hl=en
>> >
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sum()+backend

2010-05-25 Thread Tom Haskins-Vaughan
Any more details?

On Tue, May 25, 2010 at 1:34 PM, safa boubekri  wrote:
> hello every body
>
> how  can  i  create  method  to have sum()
>
> in the  backend
>
>
>
> thank you  a lot
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Tom Haskins-Vaughan
I know it may be a silly question, but do you have the correct url for
the css file? I mean, what happens when you put it in your brower
location bar?

On Wed, May 26, 2010 at 6:08 AM, Javier Garcia  wrote:
> Hi,
>
> i have this lines:
>
>  use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.min.js')?>
>  use_stylesheet('/sfJqueryReloadedPlugin/css/ui-lightness/jquery-ui-1.7.2.custom.css')?>
>
> The first .js is loaded but the second .css not...any idea?
>
> --
> Javi
>
> Ubuntu 8.04 - Symfony 1.3
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Tom Haskins-Vaughan
+1 for jquery

On Wed, May 26, 2010 at 8:51 AM, Eno  wrote:
> On Wed, 26 May 2010, Parijat Kalia wrote:
>
>> 1) Enabling jQuery or Prototype (which 1 is better and easier to learn)
>
> jQuery has a lot more widgets available IMHO.
>
>> 2) Do I need to download anything off the net, or are the 2 jscript
>> libraries inbuilt. I find several plugins for jquery, so not sure what to
>> download
>
> Look for the sfJqueryReloadedPlugin.
>
>> 3) I have two drop down menus. Upon selection of drop down menu bar 1, the
>> menu of drop down menu bar is created. This I believe is a Javascript
>> issue,but the menu off each off these items comes off my php script, so I am
>> not sure how I can echo this within my javascript. I know you can have
>> javascript being echoed out of php, but u certainly can't have it the other
>> way round. Either ways, how can I transfer the menu arrays which I have in
>> PHP to javascript. Or is this an ajax issue?
>
> You could create Javascript arrays from PHP and use js event handlers to
> setup your menu using them when uses mouses over or clicks.
>
> Most probably there is a jQuery widget out there that does this for you.
> Use Google.
>
>
> --
>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: configure getListBatchActions() in backend

2010-05-27 Thread Tom Haskins-Vaughan
Can you not achieve this with credentials?

On Thu, May 27, 2010 at 10:53 AM, Ricardo  wrote:
> Somebody can help me ?
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
Are all the apps on the same subdomain?

On 6/2/10, wueb  wrote:
> There is any chance to use sfGuardDoctrinePlugin to authentication in
> all my apps?
>
> I mean, i have app1, app2 and app3. If i do a login in app3, app2 and
> app1 will be able to know i'm already authenticated and will allow me
> to enter.
>
> There is any chance to do this? thanks
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
I mean *domain* :-)

On 6/2/10, Tom Haskins-Vaughan  wrote:
> Are all the apps on the same subdomain?
>
> On 6/2/10, wueb  wrote:
>> There is any chance to use sfGuardDoctrinePlugin to authentication in
>> all my apps?
>>
>> I mean, i have app1, app2 and app3. If i do a login in app3, app2 and
>> app1 will be able to know i'm already authenticated and will allow me
>> to enter.
>>
>> There is any chance to do this? thanks
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
> --
> Sent from my mobile device
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] generare_csv

2010-06-02 Thread Tom Haskins-Vaughan
How far have you got?

On 6/2/10, safa boubekri  wrote:
> HELLO
>
>
>
> how can i genrate   csv  which contain  the result of table
>
>
> thank you
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
Sent from my mobile device

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
Hi All,

We have a US ecommerce site at that we are looking to take into
Canada. Since we will in all likelihood move to more countries, we
want to refactor the payment, tax and shipping code to use common
interface for each. So that when we move to each new country we have a
common interface to program for. Has anyone done anything like this? I
know there's the sfPaymentPlugins but what about for shipping and tax?

Thanks in advance,

Tom

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
Thanks, Richard, I'll take a look. Anyone else working on anything else?

On Thu, Jun 3, 2010 at 3:15 PM, Richard D Shank  wrote:
> On 06/03/2010 11:18 AM, Tom Haskins-Vaughan wrote:
>>
>> Hi All,
>>
>> We have a US ecommerce site at that we are looking to take into
>> Canada. Since we will in all likelihood move to more countries, we
>> want to refactor the payment, tax and shipping code to use common
>> interface for each. So that when we move to each new country we have a
>> common interface to program for. Has anyone done anything like this? I
>> know there's the sfPaymentPlugins but what about for shipping and tax?
>>
>> Thanks in advance,
>>
>> Tom
>>
>>
>
> I haven't looked at the code, but there is a sfsTaxPlugin and a
> sfsDeliveryPlugin listed in the project redmine of in the sfShop project.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Forcing a canonical hostname for absolute links without clobbering the entire context: possible?

2010-06-14 Thread Tom Haskins-Vaughan
What about just a new helper, e.g. email_link_to() which calls link_to
but adds the hostname on the front? Store the hostname in your app.yml
to make it a little more flexible.

On Fri, Jun 11, 2010 at 12:30 PM, Olivier LOYNET
 wrote:
> Hi,
>
> Is any solution has been found to get absolute links has Tom request ?
>
> Thanks,
> Olivier
>
>
>> -Message d'origine-
>> De : symfony-users@googlegroups.com [mailto:symfony-
>> us...@googlegroups.com] De la part de Tom Boutell
>> Envoyé : vendredi 13 novembre 2009 23:35
>> À : symfony-users@googlegroups.com
>> Objet : [symfony-users] Forcing a canonical hostname for absolute links
>> without clobbering the entire context: possible?
>>
>>
>> I need to send emails from tasks, with valid links in them. Out of the
>> gate, link_to produces bad absolute URLs because of course it has no
>> idea what the site is called.
>>
>> I have read that this can be solved in the following fashion in
>> factories.yml:
>>
>> prod:
>>   routing:
>>     class: sfPatternRouting
>>     param:
>>        context:
>>          host: www.pogil.org
>>
>> Unfortunately this seems to be a hard override of the entire context
>> hash. Once it's done, Symfony won't populate it with runtime
>> information like 'method'.
>>
>> The end result (perhaps among others) is that Doctrine routes break
>> for users who are browsing the prod frontend controller.
>>
>> I guess I could work around this by creating duplicate environments
>> just for command line work on each server: prod_cli, dev_cli,
>> staging_cli, etc. But that requires a large amount of very error-prone
>> duplication, in many configuration files.
>>
>> Is there an alternative way to fix the URLs generated by link_to which
>> will work without overriding everything else in context and therefore
>> making it an unusable technique in an environment that does get used
>> in web controllers?
>>
>> I'd think being able to force a canonical site name in links would be
>> a good feature anyway.
>>
>> Thanks!
>>
>> --
>> Tom Boutell
>> P'unk Avenue
>> 215 755 1330
>> punkave.com
>> window.punkave.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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>> -~--~~~~--~~--~--~---
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Using country code for i18n Doctrine translations

2010-10-26 Thread Tom Haskins-Vaughan
Hi all,

I apologise if this has been dealt with in the past.

In the Gentle Introduction to symfony it says:

  "Keeping both the language and the country in the culture
  is necessary because you may have a different French translation
  for users from France, Belgium, or Canada, and a different Spanish
  content for users from Spain or Mexico."

I have created some dictionaries for en_US and fr_FR to use the i18n
helper __() without any problem. But when I try to use Doctrine
translations, I am limited to the language (i.e. en or fr). Am I doing
something wrong or is it just not possible to use the "full" culture
to translate doctrine records?

Any pointers much appreciated.

Thanks,

Tom
-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ www.harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Using country code for i18n Doctrine translations

2010-10-27 Thread Tom Haskins-Vaughan
Thank you! Works perfectly. I noticed the size of the lang field and
even thought of changing it manually but I hoped that symfony/Doctrine
would have a solution. And they do!

-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

behaviors:i18n
> The default length for the lang column generated by Doctrine is 2, I think
> that's the reason of your problem.
> So, you can just use the language in symfony if you don't need to provide
> different translations for the same language, or you can override this
> setting to make the lang column containing 5 characters by doing this :
> X:
>   actAs:
>     I18n:
>       fields: [xxx, yyy, zzz]
>       length: 5
> --
> Pierre-Yves
>
>
> 2010/10/26 Tom Haskins-Vaughan 
>>
>> Hi all,
>>
>> I apologise if this has been dealt with in the past.
>>
>> In the Gentle Introduction to symfony it says:
>>
>>  "Keeping both the language and the country in the culture
>>  is necessary because you may have a different French translation
>>  for users from France, Belgium, or Canada, and a different Spanish
>>  content for users from Spain or Mexico."
>>
>> I have created some dictionaries for en_US and fr_FR to use the i18n
>> helper __() without any problem. But when I try to use Doctrine
>> translations, I am limited to the language (i.e. en or fr). Am I doing
>> something wrong or is it just not possible to use the "full" culture
>> to translate doctrine records?
>>
>> Any pointers much appreciated.
>>
>> Thanks,
>>
>> Tom
>> --
>> The Harvest Cloud
>> Who says buying local food can't be easy?
>>
>> Find out more @ www.harvestcloud.com
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How to run functional tests when using sfDoctrineGuard and many modules are set is_secure true?

2010-12-21 Thread Tom Haskins-Vaughan
Why don't you just log in as part of your test?

On Tue, Dec 21, 2010 at 10:23 AM, dmitrypol  wrote:

> I implemented sfDoctrineGuardPlugin 5.0.0 and secured most of my
> modules (some can be publicly accessible).  However it really limits
> my ability to run functional tests.
>
> I check that module/action is secure by doing response
> isStatusCode(401).  How do I bypass it to check that module/action
> displays properly via checkElement when user is logged in?
>
> I found some old posts on this group but they didn't help.  I would
> appreciate any suggestions.  Thank you very much
>
> Dmitry
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Log and notify on order actions

2010-12-30 Thread Tom Haskins-Vaughan
sf1.4/doctrine/ubuntu

Hi all,

Here's hoping all of you (who observe it) had a Merry Christmas and
are looking forward to a fine New Year.

I am developing an ecommerce application. At each stage in an order's
life-cycle, I want to log an event, send a notification and send a
user flash.

My question is, where should I group all this together. Should this
all be in the controller or should I dispatch an event on each action.
My worry is that with all of the user-defined notification
preferences, I will clog up the controller. But I don't want to
unnecessarily add the overhead of listners.

Any advice is much appreciated.

Cheers,

Tom

-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfDoctrineGuard

2010-12-31 Thread Tom Haskins-Vaughan
.sfGuardAuth/config/view.yml file

On Fri, Dec 31, 2010 at 5:14 PM, ma89a2  wrote:
> Hello all.
>
> I have an frontend app with sfDoctrineGuard installed and it works
> fine. Is there a way I can secure the frontend/template/layout.php
> too ? Because I would like to have just the login form on this page
> not my header, menu and footer showing.
>
> Thanks
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Populate sfWidgetFormChoice choices with AJAX

2011-01-11 Thread Tom Haskins-Vaughan
What do you have so far?

On Thu, Jan 6, 2011 at 10:10 AM, Emil Rømer Christensen
 wrote:
> Hi there,
>
> I have made a form with 3 select boxes using sfWidgetForm. Here is the
> schema for them:
>
> ServiceType:
>  columns:
>    name: { type: string(255), notnull: true, unique: true }
> Milage:
>  columns:
>    name: { type: string(255), notnull: true }
>    service_type_id: { type: integer, notnull: true }
>  relations:
>    ServiceType: { onDelete: CASCADE, local: service_type_id, foreign:
> id, foreignAlias: ServiceType }
> Month:
>  columns:
>    name: { type: string(255), notnull: true }
>    service_type_id: { type: integer, notnull: true }
>  relations:
>    ServiceType: { onDelete: CASCADE, local: service_type_id, foreign:
> id, foreignAlias: ServiceType }
>
> There are 2 different ServiceTypes, and for each of those two there
> are a set of milages and months.
> Milage and Month select boxes are not populated when the page loads.
>
> What I need to do, but can't figure out, is how to populate Milage and
> Month with the correct choices using AJAX.
> An example could be:
> You select "BasicService" and then you have Milage select fill with
> choices: "0-1km", "1-5km", "5+10" and Month select
> fill with "36", "48", "60", "72".
> And if you select "ExtendedService" you will have Milage: 0-1km",
> "1-5km", "5+1", "10+km" and month select "18",
> "36", "48", "60".
>
> Above values are just examples.
> Anyone has any suggestions?
>
> Kind regards,
> Emil.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Pagination problem

2011-01-11 Thread Tom Haskins-Vaughan
Are you still having trouble with this? I tried the link and didn't
see anything wrong.

On Fri, Jan 7, 2011 at 1:00 PM, Felipe Gutierrez
 wrote:
> Hi Im new in symfony I need a hand with pagination, Im trying to use
> pagination in a page for search terms, in the module I have 2 actions, index
> and "buscaletra" the action index works fine, but the other one doesnt work
> the pagination.
>
> please take a look.
> http://ooodic.planetopenoffice.org/frontend_dev.php/glosario
>
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfForm getValidatorSchema()->setPreValidator() documentation

2011-01-11 Thread Tom Haskins-Vaughan
What are you trying to achieve?

On Fri, Jan 7, 2011 at 2:39 PM, neanlos  wrote:
> Anyone has documentation about sfForm getValidatorSchema()-
>>setPreValidator() mentioned in the article
> http://www.symfony-project.org/gentle-introduction/1_4/en/10-Forms?
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] documentation about hasHelp() mentioned in gentle-introduction 1.4

2011-01-11 Thread Tom Haskins-Vaughan
I just grep'd for the phrase "hasHelp" in sf1.4.8 and came up with
nothing. Is this not in the core library?

On Fri, Jan 7, 2011 at 2:53 PM, neanlos  wrote:
> ... And anyone has documentation about the hasHelp function mentioned
> in the section "Customizing Error Messages Display" of gentle-
> introduction 1.4?
>
> http://www.symfony-project.org/gentle-introduction/1_4/en/10-Forms
>
> hasError()): ?>
> 
>  
>    renderError() ?>           // List of errors
>  
> 
> 
> 
>  renderLabel() ?>    // Label
>  
>    render() ?>                // Widget
>    hasHelp()): ?>
>    renderHelp() ?>      // Help
>    
>  
> 
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Can you not set the service type on the object before you pass it to the form?

$calculation = new Calculation();
$calculation->setServiceType($my_value);

$form = new CalculationForm($calculation);

On Wed, Jan 12, 2011 at 8:12 AM, Emil Rømer Christensen
 wrote:
> This is my Form class:
>
> class CalculationForm extends BaseCalculationForm {
>
>  private $service_type_id = 0;
>
>  public function configure() {
>    $this->useFields(array('model_id', 'motor_id',
> 'service_type_id'));
>
>    $this->widgetSchema['model_id']->setOption('add_empty',
> 'Choose...');
>
>    $this->widgetSchema['motor_id']->setOption('add_empty',
> 'Choose...');
>
>    $this->widgetSchema['service_type_id']->setOption('add_empty',
> 'Choose...');
>
>    $month_query = Doctrine::getTable('Month')->createQuery('m')-
>>where('m.service_type_id = ?', $this->service_type_id);
>
>    $this->widgetSchema['months'] = new
> sfWidgetFormDoctrineChoice(array(
>      'model'     => 'Month',
>      'add_empty' => 'Choose...',
>      'query'     => $month_query
>    ));
>
>    $milage_query = Doctrine::getTable('Milage')->createQuery('m')-
>>where('m.service_type_id = ?', $this->service_type_id);
>
>    $this->widgetSchema['milage'] = new
> sfWidgetFormDoctrineChoice(array(
>      'model'     => 'Milage',
>      'add_empty' => 'Choose...',
>      'query'     => $milage_query
>    ));
>  }
>
>  public function getServiceTypeId() {
>    return $this->service_type_id;
>  }
>
>  public function setServiceTypeId($service_type_id) {
>    $this->service_type_id = $service_type_id;
>  }
>
> }
>
> What I can't get working atm is that the call from my action to the
> setServiceTypeId() from my actions.class.php
>
> $this->form = new CalculationForm();
> $this->form->setServiceTypeId(1);
>
> It doesn't seem to work when I invoke the method from the executeIndex
> to pre-populate the select box.
>
> For the AJAX I think I need to make a method in actions that I call
> from jQuery with .load() then have it return a JSON array with the
> info for the new options.
>
> --
> 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 "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
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Yeah, I would create an action that returned a json object and create
the new  from that.

On Wed, Jan 12, 2011 at 11:16 AM, Tom Haskins-Vaughan
 wrote:
> Can you not set the service type on the object before you pass it to the form?
>
> $calculation = new Calculation();
> $calculation->setServiceType($my_value);
>
> $form = new CalculationForm($calculation);
>
> On Wed, Jan 12, 2011 at 8:12 AM, Emil Rømer Christensen
>  wrote:
>> This is my Form class:
>>
>> class CalculationForm extends BaseCalculationForm {
>>
>>  private $service_type_id = 0;
>>
>>  public function configure() {
>>    $this->useFields(array('model_id', 'motor_id',
>> 'service_type_id'));
>>
>>    $this->widgetSchema['model_id']->setOption('add_empty',
>> 'Choose...');
>>
>>    $this->widgetSchema['motor_id']->setOption('add_empty',
>> 'Choose...');
>>
>>    $this->widgetSchema['service_type_id']->setOption('add_empty',
>> 'Choose...');
>>
>>    $month_query = Doctrine::getTable('Month')->createQuery('m')-
>>>where('m.service_type_id = ?', $this->service_type_id);
>>
>>    $this->widgetSchema['months'] = new
>> sfWidgetFormDoctrineChoice(array(
>>      'model'     => 'Month',
>>      'add_empty' => 'Choose...',
>>      'query'     => $month_query
>>    ));
>>
>>    $milage_query = Doctrine::getTable('Milage')->createQuery('m')-
>>>where('m.service_type_id = ?', $this->service_type_id);
>>
>>    $this->widgetSchema['milage'] = new
>> sfWidgetFormDoctrineChoice(array(
>>      'model'     => 'Milage',
>>      'add_empty' => 'Choose...',
>>      'query'     => $milage_query
>>    ));
>>  }
>>
>>  public function getServiceTypeId() {
>>    return $this->service_type_id;
>>  }
>>
>>  public function setServiceTypeId($service_type_id) {
>>    $this->service_type_id = $service_type_id;
>>  }
>>
>> }
>>
>> What I can't get working atm is that the call from my action to the
>> setServiceTypeId() from my actions.class.php
>>
>> $this->form = new CalculationForm();
>> $this->form->setServiceTypeId(1);
>>
>> It doesn't seem to work when I invoke the method from the executeIndex
>> to pre-populate the select box.
>>
>> For the AJAX I think I need to make a method in actions that I call
>> from jQuery with .load() then have it return a JSON array with the
>> info for the new options.
>>
>> --
>> 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 "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
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> The Harvest Cloud
> Who says buying local food can't be easy?
>
> Find out more @ harvestcloud.com
>



-- 
The Harvest Cloud
Who says buying local food can't be easy?

Find out more @ harvestcloud.com

-- 
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 "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
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


  1   2   3   4   >