[symfony-users] Is there a way to refresh or reset csrf token if I unset some of the form's field?

2010-06-02 Thread chrisyue
I have asked in the symfony forum in http://forum.symfony-project.org/index.php/t/27855/ but get no answers. Is it the reason that the csrf token can't be reset after initialization? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] How can I get rendered partial content in a task(or cli)

2010-02-24 Thread chrisyue
Hi all, I want to use cron to send email by using symfony task, My email is i18n mail and should be rendered before sending. To do the work, I have two thoughts in my mind but still not very clear. So I need some help from you: 1. Is there a way to get rendered partial content by directly use

[symfony-users] Where are the whole page cache files in sf 1.4?

2010-02-08 Thread chrisyue
I set the view cache option's dir in %sf_view_cache_dir% and i can see those cache files in the view cache folder when the cache's with_layout option is false but if I set the with_layout option to true the cache would never appear in the view cache folder, so where are the with_layout cache

[symfony-users] Re: redirect method covert to amp;

2010-01-11 Thread chrisyue
no .. that is not the case, I've already raise a trac ticket to core dev team http://trac.symfony-project.org/ticket/8083 ken wrote: you need to explicitly call ini_set('arg_separator.output', ''); before ProjectConfigutation On Jan 8, 10:43 am, chrisyue blizzch...@gmail.com wrote: yes I've

[symfony-users] Re: Custom 500 error page

2010-01-07 Thread chrisyue
yes you can custom 500 in apps/APPNAME/config/error/error.html.php Mark Smith wrote: Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

Re: [symfony-users] redirect method covert to amp;

2010-01-07 Thread chrisyue
yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name), sf will always throw error the route not found if the route has parameters. I tried it in sf 1.4. Eno wrote: On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I

[symfony-users] How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
I don't use swiftmail in my current app but I've found that sf always load swiftmail's php file which is a waste of resource can I disable it or some other components completely in the setting files? -- You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread chrisyue
thank you ken :) ken wrote: you can use $object-getRaw('property'); On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote: I also encountered a problem like that: when I pass a DOMDocument object $dom to view, I found that I can't treat $dom as array anymore, I put $dom in a foreach

Re: [symfony-users] How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
Thank you Eno :) Eno wrote: On Wed, 6 Jan 2010, chrisyue wrote: I don't use swiftmail in my current app but I've found that sf always load swiftmail's php file which is a waste of resource can I disable it or some other components completely in the setting files? http

[symfony-users] Re: How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
After reading that reference I still don't know where to start, Can you please teach me how to disable swiftmail by these config files ? On Jan 6, 10:41 pm, Eno symb...@gmail.com wrote: On Wed, 6 Jan 2010, chrisyue wrote: I don't use swiftmail in my current app but I've found that sf always

[symfony-users] Re: How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
After reading that reference I still don't know where to start, Can you please teach me how to disable swiftmail by these config files ? On Jan 6, 10:41 pm, Eno symb...@gmail.com wrote: On Wed, 6 Jan 2010, chrisyue wrote: I don't use swiftmail in my current app but I've found that sf always

[symfony-users] Why can not change default routing class to a self defined routing class?

2010-01-06 Thread chrisyue
I can't event switch sfPatternRouting to sfRequestRoute in factories.yml I myself has made DomainRouting which can pass a param from the subdomain, I want to use it as my default routing class, how can i do it ? -- You received this message because you are subscribed to the Google Groups

[symfony-users] redirect method covert to amp;

2010-01-06 Thread chrisyue
in an action method if I use $this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' = '3')); it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a bug? or I just use it wrong? -- You received this message because you are subscribed to the Google Groups symfony users

Re: [symfony-users] Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread chrisyue
I also encountered a problem like that: when I pass a DOMDocument object $dom to view, I found that I can't treat $dom as array anymore, I put $dom in a foreach statement: foreach ($dom-getElementsByTagName('name') as $name ) .. It would always ouput names from a xml file untill I set escape

[symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?

2010-01-04 Thread chrisyue
When I finished the jobeet tutorial, I found the application load some files which shouldn't be loaded as I never used them at all (swifter mailer for example, 11 files of it were loaded each request) the same situation has happened in my prod server, there has been more than 100+ files to be

[symfony-users] Re: How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?

2010-01-04 Thread chrisyue
wrote: See below: On Mon, Jan 4, 2010 at 4:46 PM, chrisyue blizzch...@gmail.com wrote: When I finished the jobeet tutorial, I found the application load some files which shouldn't be loaded as I never used them at all (swifter mailer for example, 11 files of it were loaded each request

[symfony-users] Re: How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?

2010-01-04 Thread chrisyue
for your advice and the guide actually help a little. On Jan 5, 12:02 am, Eno symb...@gmail.com wrote: On Mon, 4 Jan 2010, chrisyue wrote: When I finished the jobeet tutorial, I found the application load some files which shouldn't be loaded as I never used them at all (swifter mailer for example

[symfony-users] Do you tried the new feature project:optimize ? how is it?

2010-01-04 Thread chrisyue
I just tried the new task project:optimize, On my situation it shows no difference after execute it, the eaccelerator debug log shows the same amount of file loaded after running it. I guess this task is only for the application which didn't use cache because the description of the task is

[symfony-users] How to create mysql partitioning table with symfony?

2009-05-24 Thread chrisyue
I am a newbie in symfony, recently I am studying symfony by the jobeet tutorials, but I am used to creating partitioning for large table to improve performance. wish somebody would help me with this question, thx a lot. --~--~-~--~~~---~--~~ You received this

[symfony-users] Re: How to create mysql partitioning table with symfony?

2009-05-24 Thread chrisyue
enough. Is there a better way to do these kind of stuff in symfony?? On May 24, 8:00 pm, Ian P. Christian poo...@pookey.co.uk wrote: 2009/5/24 chrisyue blizzch...@gmail.com I am a newbie in symfony, recently I am studying symfony by the jobeet tutorials, but I am used to creating partitioning