[symfony-users] Re: Partial in component
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: I use in several components without problem. Manel On 31 mar, 17:23, HAUSa 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com 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.
[symfony-users] Re: Partial in component
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 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: > > I use in several components without problem. > > Manel > > On 31 mar, 17:23, HAUSa > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com 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.
[symfony-users] Re: Partial in component
Hi, Maybe you could load the Partial helper and use get_partial() ? Mr_chon On Apr 1, 3:23 pm, HAUSa 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 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: > > > > I use in several components without problem. > > > Manel > > > On 31 mar, 17:23, HAUSa > > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com 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.