امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hey all,
Is it possible to render template or macro and get html output into a variable? I tried doing something like this:
But I only get empty string, no erros of any kind.
Thanks in advance
Is it possible to render template or macro and get html output into a variable? I tried doing something like this:
or$latest_posts = $this->app->templater()->renderMacro('public:modules_macros','latest_posts', $viewParams);
Click to expand...
$latest_posts = $this->app->templater()->renderTemplate('latest_posts', $viewParams);
Click to expand...
But I only get empty string, no erros of any kind.
Thanks in advance
