Komentarze |
(0000107)
viamedia (zgłaszający)
2010-02-27 16:42
|
I got it to work with a few hacks:
1) Copy the content from Mage_Core_Controller_Varien_Router_Standard::match to Flagbit_Typo3connect_Controller_Router::match, right after
if (Mage::app()->getStore()->isAdmin()) {
return false;
}
Now the blocks can be fetched, but the entire Shop frontend ist outputted too, right before the TYPO3 page.
so
2)
In class Flagbit_Typo3connect_Controller_Response the method outputBody is overloaded to return the content, instead of echoing it. It seems that the content is outputted before this function is called. So I replaced the sendResponse method with
public function sendResponse() {
ob_end_clean();
parent::sendResponse ();
if ($this->isRedirect ()) {
exit ();
}
}
As I said: that's a really ugly hack, but it works, so it might give you a hint on how to fix this. |
|
(0000109)
viamedia (zgłaszający)
2010-03-02 09:55
|
Well, point 2 broke the Ajax functions, do I changed it to:
public function sendResponse() {
if(!Mage::app ()->getFrontController ()->getRequest ()->isXmlHttpRequest ()) {
ob_end_clean();
}
parent::sendResponse ();
if ($this->isRedirect ()) {
exit ();
}
} |
|
(0000114)
andi (zgłaszający)
2011-03-23 08:56
|
ob_end_clean();
is actually blocking the complete TYPO3 website.
We inserted the code like suggested and both options with and without if block the complete website. |
|