conditional vars in framework
Hello,
I have a site that uses the framework for templating.
Within the primary dw template I want to add a condition where IF a variable is present (isset) then echo the value.
Basically it is code that will only fire when a page has a particular recordset (rs_invType) and value (typeName).
Problem: Value is not found when placed in the template.
Code:
<?php if (isset($row_rs_invType['typeName'])) { ?>
<div class="redBorder" style="width:240px; height: 30px; margin-left:300px; margin-top:40px;">
here : <?php echo $row_rs_invType['typeName']; ?>
<!-- inventory title -->
</div>
<?php }
else { ?>
<!-- not found -->
<?php } ?>
While this code works perfectly in the page that actually creates the recordset it fails when set to the template.
Is the problem that the template is server side processed fully before the page where the template is applied?
Do they not have all the pre HTML server side code processed before moving to the conditional statements in either document?