1. Syone C.
  2. SyFramework
  3. Issues
Issue #22 resolved

[Template] bug when removing some {VAR}

Syone C.
repo owner created an issue

Example: When you try to set a json encoded string: $this->setVar('VAR', '[{"bSortable":false,"aTargets":[-1]}]'); At the end, {"bSortable":false,"aTargets":[-1]} will be removed in the ouput because the template engine thinks it's a var

try to use another regexp line 56 in Template.php: $res = preg_replace('/{[^ \t\r\n}",]+}/', "", $res);

Comments (1)

  1. Log in to comment