Some PHP code on my custom theme is not working.
Permalink
On all my custom block areas I have the following (with differing names however):
<div class="box">
<?
$a = new Area('box1Area');
$a->display($c);
?>
</div>
but on the page I do not see areas I can add blocks but only this text "display($c);"
This is happening on my local install and not on the one I have with iPage so whats that about?
<div class="box">
<?
$a = new Area('box1Area');
$a->display($c);
?>
</div>
but on the page I do not see areas I can add blocks but only this text "display($c);"
This is happening on my local install and not on the one I have with iPage so whats that about?
thank you that did it
Try adding 'php' '<?' to first line of php. You've got a short code which won't work.
Too late!
Too late!
Thanks and actually that's how they did it in the tutorial video (http://documentation.concrete5.org/developers/designing-for-concrete5/building-a-concrete5-theme/converting-an-html-template-to-a-concrete5-theme) but whatever
your first
<?
should actually be
<?php