How can i FORCE raw output in joomla 2.5 without passing &format=raw in the url ?
i tried this in the controller.php
require_once (JPATH_BASE.DS.'libraries'.DS.'joomla'.DS.'document'.DS.'raw'.DS.'raw.php');
JFactory::$document = new JDocumentRaw();
//doesn't work, outputs only "Array"
and
JRequest::setVar('tmpl', 'component');//doesn't disable view rendering
and
$document = &JFactory::getDocument();
$doc = &JDocument::getInstance('raw');
$document = $doc;
//gives me Strict Standards: Only variables should be assigned by reference in ...
//and doesn't disable view rendering
Since i print raw output, i don't even build Jview and stuff, just die()
from the controller, but i wanted to see if there was a nicer way ?