what is the placeholder? I've tested everything (?) but still empty print
I use dompdf.
Christoph
I use dompdf.
Christoph
{{reportTable border=1 borderColor="#333" cellpadding=2 fontSize=9}}
<?php
namespace Espo\Custom\TemplateHelpers;
use Espo\Core\Htmlizer\Helper;
use Espo\Core\Htmlizer\Helper\Data;
use Espo\Core\Htmlizer\Helper\Result;
use Espo\Entities\User;
class PrintedBy implements Helper
{
public function __construct(
private User $user,
){}
public function render(Data $data): Result
{
return Result::createSafeString( $this->user->get('name') );
}
}
{ "printedBy": "Espo\\Custom\\TemplateHelpers\\PrintedBy" }
Comment