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?

 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
Hello,
your first
<?

should actually be
<?php
fernando88 replied on at Permalink Reply
thank you that did it
Steevb replied on at Permalink Reply
Steevb
Try adding 'php' '<?' to first line of php. You've got a short code which won't work.

Too late!
fernando88 replied on at Permalink Reply
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