Hello,
I'm using TBS 3.2.0 with PHP 5.1.2.
I want to use my own object within a template, so I included them by doing
$tpl->ObjectRef['myobj'] =& myobj; |
Hence, accessing a class constant of this object doesn't work. TBS throws an error message. So I checked the code and inserted the following couple of lines into function "meth_Locator_Replace", line 902:
elseif (defined(get_class($Value) . '::' . $x)) {
$x =& constant(get_class($Value) . '::' . $x);
}
|
Now it works. Do you consider adding this functionality (not neccessary my solution :-)) to a bugfix? Problem is: I'd like to license my software under BSD, which is not possible if I modify the TBS-code and use it (then I am bound to LGPL).
Cheers - thank you
Manuel