Hi
I'm trying to create a static page with some customization in it.
In my ProjectPage.php i have:
class ProjectPage_Controller extends Page_Controller
{
function init()
{
parent::init();
}
function myCustomFunction()
{
include('../../../ext/incl/test.php');
$name = 'BLAH';
echo '<a href="http://example.com/php/test.php?name='.$name.'">link</a>';
}
}
And in my ProjectPage.ss i have something like:
<div>
$myCustomFunction
</div>
The problem is the function is called BEFORE everything else (ie. before <html>) & not at the point between the divs.
Can anyone help as to why?
Cheers