Thanks for your reply.
Yes, it's similar to sprintf except that it also allows objects to be passed
to. like get_string_partial('<? echo $user->getEmail()?>',
array('user'=>$user))

I have a system in which users send email to a list of other users and that
emails needs to be customizable.


--Mohammad


On Sat, Aug 30, 2008 at 3:56 AM, Fabian Lange <
[EMAIL PROTECTED]> wrote:

> Hi,
> you mean something like:
> http://php.net/manual/en/function.sprintf.php
>
> Anyway it is recommended to use template files to prevent mixing too much
> html into php files
> .: Fabian
>
>
> On Fri, Aug 29, 2008 at 2:01 AM, Mohammad Ali Safari <
> [EMAIL PROTECTED]> wrote:
>
>> One solution is to use the code of sfPHPView::renderFile($_sfFile). It's
>> actually surprising that this functionality is not added to sfPHPView . it's
>> a quite useful feature.
>>
>>
>> --Mohammad
>>
>>
>>
>> On Thu, Aug 28, 2008 at 5:37 PM, Mohammad Ali Safari <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi
>>> Is there a method in symfony similar to get_partial(($templateName,
>>> $vars) that instead of $templatename gets a PHP string and decorates it?
>>> Hope I am clear.
>>>
>>> Something like get_string_partial('<? echo $var?>', array('var'=>'test'))
>>>
>>>
>>>
>>> --Mohammad
>>>
>>
>>
>>
>>
>
> >
>

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

Reply via email to