ElementHelper
ElementHelper copied to clipboard
Snippets stop functioning after becoming static files
This is because of the description for EH being added at the start of each file:
<?php
/**
*
* @Description
*
*/ ?>
By closing the PHP tag there, the rest of the snippet code is ignored..
I tried to fix it by adding an extra <?php tag after this section, but somehow I ended up with this error:
Fatal error: Call to undefined function token_get_all() in /xxxxxxxxxxxxxxx/core/components/elementhelper/model/filehelper.class.php on line 56
chenge line ~199
from:
$output .= "\n *\n */ ?>\n\n";
to
$output .= "\n *\n */ \n\n";
in
components/elementhelper/model/elementhelper.class.php