Hi,

Maybe you could load the Partial helper and use get_partial() ?


Mr_chon

On Apr 1, 3:23 pm, HAUSa <[email protected]>
wrote:
> I want to use it in my component (not template) because I have the e-
> mail layout in there.
> And the e-mail has to be sent from the component with the Mailer.
>
> On 1 apr, 15:19, Manel <[email protected]> wrote:
>
> > Is not a good idea to get a partial in an action, is better in the
> > template.
>
> > In a component you can include a partial in the template like this:
> > <?php echo include_partial('module/partial', $params)?>
> > I use in several components without problem.
>
> > Manel
>
> > On 31 mar, 17:23, HAUSa <[email protected]>
> > wrote:
>
> > > In an action I can use $this->getPartial('system/email_template'), but
> > > that doesn't work in an component.
> > > How can I do this in a component?
>
>

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to