Code: Select all
<div>
<!-- IF INDEX.0 neq "" -->
<!-- PHP -->aPhpFunction({INDEX.0});<!-- ENDPHP --> //*
<!-- ENDIF -->
</div>
*how can i access the variable here? because doesnt work
Code: Select all
<div>
<!-- IF INDEX.0 neq "" -->
<!-- PHP -->aPhpFunction({INDEX.0});<!-- ENDPHP --> //*
<!-- ENDIF -->
</div>
Block variables must be in lowercase and names should not start with numbers (just like in any other language as well). In other words: make it at least
index._0
.Consider using the template system fully by calling PHP in your PHP files, not in your template files.