The knowledge base has
this page explaining how to add new page.
It works fine if I only put html contents in the page, but would there be
any way to put php code in the new page?
For example, if I put
Code:
<?
echo "hello world";
?>
in the body.tpl, then I get an internal error on the new page. Putting
the same code in the viewer, at the end of the file, gives what I expect. However, if I put
Code:
<?
$a="hello world";
echo $a;
?>
instead, then the entire site gets messed up. Would anyone know how to achieve this? Thank you in advance.