I'm looking for a way to add a PHP script block above the HTML document header. JDocument doesn't seem to allow for that. I'd like to do something like that in the view class:
Code: Select all
$doc =& JFactory::getDocument();
$doc->addPhpInclude('path/to/script.php');
The reason is I'm integrating an existing application into Joomla. It uses AJAX that is processed in the calling documents above the header to prevent any output. I'd like to keep the application as original as possible.
Thanks much!