Announcement

Collapse
No announcement yet.

Htmlizer : custom helpers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Htmlizer : custom helpers

    Hello,
    is possible to create a custom helper for htmlizer ? include path maybe in upgrade safe ?

    Htmlizer.php
    line : 239
    sample :

    PHP Code:
    'secondsToHHmm' => function ($context$options) {
           
    $hours floor($context[0] / 3600);
           
    $minutes floor(($context[0] / 60) % 60);
           return 
    $hours .',' .$minutes;

    If a custom include path exist, that will be very cool !
    Here a possible function that will be useful :


    this will be great if we can add like custom "formula".. without extend pdf entrypoint and htmlizer and pdf service.

    Cheers
    Last edited by item; 02-10-2019, 09:17 PM.
Working...
X