[symfony-users] Using Varnish Cache with Symfony

2010-09-30 Thread CA
I am interested in using Varnish with Symfony to cache my static files
in a Rproxy while my dynamic assets are served by PHP.

I currently have Varnish only removing cookies from static files and
caching static files -- but I cannot log into my Symfony application.

My understanding is that if the php document retained its Symfony
cookie, then user authentication would not be disrupted by Varnish.

Any insight is appreciated. 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


[symfony-users] Discount Code for Symfony Users - Perq - A Symfony Powered Website

2009-12-17 Thread CA
SYMFONY50

I have spent the last year developing a Symfony + Doctrine + jQuery
web application for small businesses.

I talked our sales people into providing the Symfony community a
discount code for our product.

The application, which is for small business people to track employee
paid time off, may or may not be right for you, but I wanted to give
back some way I could.

Use SYMFONY50 and receive 50% off for six months.

If you have any comments or questions on how I used symfony, drop me a
line at calt...@matterco.com.

Thanks,
Chris

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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.




[symfony-users] sfValidatorDate with min/max and date_format

2009-09-02 Thread CA

I am using sfValidatorDate to check that a date is in the 'mm/dd/yy'
format. 'date_format' is causing Min and Max to fail. I believe the
failure is caused by the shortened year format.

How can I get the validator to enforce both the date format and the
min/max. I tried using the 'date_format' option.

$this-setValidator('start_date', new sfValidatorDate(
  array(
'min' = mktime(0,0,0,1,1,date('y',time())),
'max' = mktime(0,0,0,12,31,date('y',time())+1),
'required' = true,
'date_format' = '/^[0-9]{2}\/[0-9]{2}\/[0-9]{2}$/',
'date_output'='m/d/y'
  ),array(
'min'='Must start this year',
'max'='Cannot span two years',
'bad_format'='Must be MM/DD/YY',
'required'='Start Date required')
  ));

--~--~-~--~~~---~--~~
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: Help text for nested form fields

2009-08-14 Thread Ca-Phun Ung
On Wed, Aug 12, 2009 at 4:45 PM, caphun cap...@yelotofu.com wrote:


 Hi,

 Been looking around for answers to this but couldn't find one. Does
 anyone know how to get the help text from generator.yml to pull
 through to a nested form field? If that's not possible what's the best
 way to manually set the help text for a nested form field?

 Thanks!


For anyone following this thread we did not find a solution to this so end
up having to modify the form class using setHelps method, e.g.:

$this-widgetSchema-setHelps(array(
  'start_time' ='(In seconds)',
  'display_time' ='(In seconds)'
));

Thanks.

--~--~-~--~~~---~--~~
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: Help text for nested form fields

2009-08-13 Thread Ca-Phun Ung
*bump*

On Wed, Aug 12, 2009 at 4:45 PM, caphun cap...@yelotofu.com wrote:


 Hi,

 Been looking around for answers to this but couldn't find one. Does
 anyone know how to get the help text from generator.yml to pull
 through to a nested form field? If that's not possible what's the best
 way to manually set the help text for a nested form field?

 Thanks!
 



-- 
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, jqueryui, php, css, html

--~--~-~--~~~---~--~~
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: delete a embedded form

2009-08-12 Thread Ca-Phun Ung
Hi, here's a good article that helped me... doesn't use Ajax but you could
probably quite easily hook the delete button to an Ajax helper:

http://redotheoffice.com/?p=42

On Thu, Aug 6, 2009 at 10:06 PM, Germana Oliveira 
germanaolivei...@gmail.com wrote:


 Hi!!

 i just want to know if somebody knows a way to delete a embedded form
 from actions Class.
 I need to do this interactively using ajax.

 THANKS!!

 



-- 
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, jqueryui, php, css, html

--~--~-~--~~~---~--~~
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: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Ca-Phun Ung
On Wed, Aug 12, 2009 at 11:00 PM, Eno symb...@gmail.com wrote:


 If you look at the code, you'll see its still there in 1.1 and 1.2.


Hmm, but params: include_custom='Choose an option', doesn't work in 1.2.

Given the above the first option in my drop down should be:

option value=Choose an option/option

But instead it remains as

ption value=/option

Sorry if there's something obvious I'm missing.



 What's the difference between using include_custom and just using label: ?


Label is the text label of the form field and include_custom is the text of
the first option in a drop down list.

--~--~-~--~~~---~--~~
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: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Ca-Phun Ung
Hey Daniel,

Thanks that worked! Not as elegant but I agree it's more appropriate in the
Form class.

For the benefit of others this is what I ended adding to my Form class:

$this-widgetSchema['author_id']  = new sfWidgetFormPropelChoice(array(
  'model' = 'Author',
  'add_empty' = 'Default Unknown'
));

On Wed, Aug 12, 2009 at 11:43 PM, Richtermeister nex...@gmail.com wrote:


 Hey Caphun,

 I believe the place to handle this stuff is in the form classes now,
 and I find that a better place as well, since it affects all instances
 of a form and you can adjust the validator at the same time as well
 (assuming you need to tell it to allow an empty submission or not..).

 Hope this helps,
 Daniel



 On Aug 12, 8:35 am, Ca-Phun Ung cap...@yelotofu.com wrote:
  On Wed, Aug 12, 2009 at 11:00 PM, Eno symb...@gmail.com wrote:
 
   If you look at the code, you'll see its still there in 1.1 and 1.2.
 
  Hmm, but params: include_custom='Choose an option', doesn't work in 1.2.
 
  Given the above the first option in my drop down should be:
 
  option value=Choose an option/option
 
  But instead it remains as
 
  ption value=/option
 
  Sorry if there's something obvious I'm missing.
 
 
 
   What's the difference between using include_custom and just using
 label: ?
 
  Label is the text label of the form field and include_custom is the text
 of
  the first option in a drop down list.
 



-- 
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, jqueryui, php, css, html

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---