Hello there.
It seems I have a problem very similar to :
*
http://groups.google.com/group/symfony-users/browse_thread/thread/d9ad264cb18324ac/ae9d376d77e7dde3?hl=en
* http://www.symfony-project.org/forum/index.php/t/9664/
but I did not find (or well searched enough) any answer.
I explain myself. I have a view which calls a component and I provide
it a parameter.
Here are two bits of code :
1) <?php include_component('database', 'placelist', array('published'
=> $sf_params->get('published', 1)));?>
2) <?php include_component('database', 'placelist', array('published'
=> $sf_params->get('published')));?>
Notice the difference is only the second parameter of get(). 1) does
not work and generates an error (call_user_func(1) does not exist) ;
2) works fine.
In my apps/config/settings.yml, I have :
escaping_strategy: both
# escaping_method: ESC_ENTITIES
When I comment out "escaping_strategy: both", both 1) and 2)
works.
So I wonder why the second parameter of get() is transformed in a
callback when escaping_strategy is enabled ? Is it normal or not ? How
can I have 1) working with or without escape strategy enabled ?
Thanks a lot :-)
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---