Hi,
I'm having a problem with the variables of a component, this is there are no variables on the partial side of the component. Doing some tests I end up with the following code:
component.php
public function testCode()
{
$test01 = 'test';
dump($test01);
return $test01;
}
default.htm
<div class="panel panel-default">
<div class="panel-body">
{{ testCode.testCode }}<br/>
{{ test01 }}<br/>
{{ testCode.test01 }}<br/>
{{ __SELF__.test01 }}<br/>
</div>
</div>
Nothing works. The only thing I have is the dumps of the php code, but nothing on the variables in the default partial.
Related documentation: Docs / Building components and Docs / Markup / Templating.
Any idea?
Thank you in advance.
Last updated