[symfony-users] Can’t get custom error rendering t o work in symfony 1.4

2010-04-15 Thread Hong Kil Dong
I'm tring to customize error rendering in my form according to this example: http://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers#chapter_03_sub_fine_grained_customization_of_error_messages Here is my code: if ($this['message']-hasError()) { $error_msg = 'ul';

[symfony-users] html markup in form field's labels get escaped after upgrading to sf1.4

2010-03-01 Thread Hong Kil Dong
I used html markup in form field's labels for some reasons, but after upgrading from sf1.2 to 1.4 it gets escaped during rendering. How to abolish output escaping for form field's labels in sf1.4 ? -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
How to set custom error message for sfValidatorPropelUnique? I have tried: new sfValidatorPropelUnique( array('model' = 'User', 'column' = array('email')), array('invalid' = 'My custom error message') ) but I still get 'An object with the same email already exist.' error message... -- You

[symfony-users] Re: How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
Sorry, it's my mistake ( -- 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

[symfony-users] sfValidatorAnd ignores 'required' settings of its components

2010-02-09 Thread Hong Kil Dong
I face with such a problem - sfValidatorAnd completely ignores 'required' settings of its components. As an examle, for such a field: 'title' = new sfWidgetFormInput() ... 'title' = new sfValidatorAnd( array( new sfValidatorCallback(array('required' = false, 'callback' = array($this,

[symfony-users] Re: sfValidatorAnd ignores 'required' settings of its components

2010-02-09 Thread Hong Kil Dong
sf 1.2.8 -- 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

[symfony-users] ow to find out why is form not valid?

2009-12-01 Thread Hong Kil Dong
I've fallen into a strange trap - my form doesn't pass validation but neither form's fields nor calling $form-hasGlobalErrors() reports errors... How to find out what cause form validation to fail ? -- You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Re: ow to find out why is form not valid?

2009-12-01 Thread Hong Kil Dong
if that validatoion is nothing. Just check that you have a validator applied to each form widget. On Tue, Dec 1, 2009 at 1:56 PM, Hong Kil Dong fetfru...@gmail.com wrote: I've fallen into a strange trap - my form doesn't pass validation but neither form's fields nor calling $form

[symfony-users] Re: ow to find out why is form not valid?

2009-12-01 Thread Hong Kil Dong
if that validatoion is nothing. Just check that you have a validator applied to each form widget. On Tue, Dec 1, 2009 at 1:56 PM, Hong Kil Dong fetfru...@gmail.com wrote: I've fallen into a strange trap - my form doesn't pass validation but neither form's fields nor calling $form

[symfony-users] Re: Wiki and Versions

2009-11-17 Thread Hong Kil Dong
http://www.symfony-project.org/plugins/nahoWikiPlugin --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Pager without database

2009-11-09 Thread Hong Kil Dong
http://snippets.symfony-project.org/snippet/177 On Nov 9, 8:33 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to make a pager that doesn't use the database? In that case I make an array of objects myself and pass it on to the pager.

[symfony-users] Re: Caching strategy: 'with_layout: true' + filter to add dynamics

2009-10-20 Thread Hong Kil Dong
It looks exactly like SSI. Maybe it will be your more standard way if you manage to implement SSI on dynamic page ;) On Oct 19, 11:46 am, SA sarunas.atkociu...@gmail.com wrote: Hello, we are developing a news website which mostly consists of constantly changing, but fully cacheable content,

[symfony-users] Where in symfony can I set doctrine-specific attributes ?

2009-10-20 Thread Hong Kil Dong
I wish ot use ENUM type in my Doctrine model, and according to doctrine manual I have to set attribute Doctrine::ATTR_USE_NATIVE_ENUM to TRUE ( http://www.doctrine-project.org/documentation/manual/1_1/en/defining-models#columns:data-types:enum ) Where can I do it in symfony ?

[symfony-users] Re: Error creating database on ALTER TABLE..

2009-10-19 Thread Hong Kil Dong
The problem might be in autogenerated id field on Category - if Doctrine generates its type different from idCategory field that you've set explicitly. (integer might be mapped to TINYINT, SMALLINT, MEDIUMINT, ... ) Try to set both explicitly the same type ( for instance integer(4) ) On Oct 17,

[symfony-users] What does sfActions::processForm() do?

2009-09-23 Thread Hong Kil Dong
When I analyzed CRUD-generated actions I faced undocumented method processForm() - what does it do? Why it isn't documented? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] Re: What does sfActions::processForm() do?

2009-09-23 Thread Hong Kil Dong
On 23 сен, 13:52, Hong Kil Dong fetfru...@gmail.com wrote: When I analyzed CRUD-generated actions I faced undocumented method processForm() - what does it do? Why it isn't documented? Oops! I found it's declaration at the end of file

[symfony-users] How can I rewrite validator messages?

2009-05-20 Thread Hong Kil Dong
I need to rewrite standard validator messages, such as Required. etc. How can I do it without modifing validator files sources? PS Using sf1.2 and it's form framework --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups