Closed achilleb closed 5 years ago
Hello Achille,
$TBS->MergeBlock('peoples',$class, 'people') ;
This line does not check for a method 'people' in the object $class. I think the line should be:
$TBS->MergeField('my_field', $class) ; // template side : [my_field.people]
But then there is a complication with your change submission with:
method_exists($Value,'__call')
because this change will avoid the check properties when the class has a __call function.
I will fix the problem but your submission is not working as is.
Enhancement supported since TBS 3.11.0-beta-4 (release candidate).
Enhancement supported since TBS 3.11.0-beta-4 (release candidate).
Example :
$TBS->MergeBlock('peoples',$class, 'people') ;
If the class $class has no method 'people' but has a __call magic method, this will be handled.