[TYPO3-mvc] Help with PageBrowserViewHelper

Xavier Perseguers typo3 at perseguers.ch
Thu Jul 30 07:40:06 CEST 2009


Hi Sebastian,

>> $settings = Tx_Extbase_Dispatcher::getSettings();
>> this gives you the extbase action where a lot of useful informatons 
>> are in, make a debug!
> Just one quick note concerning these settings: I know they are sometimes 
> needed, but instead of using them, we should figure out why we have to 
> use them... This is one of the few places where Extbase is _NOT_ forward 
> compatible with FLOW3, and actually you should not need this information 
> in your own code as it is mostly framework internal.
> 
> So, in case you really need this information, we'll have to check what 
> to change so this is not needed anymore ;)

There is other things that we "lack" in our extension mvc_extjs_samples. 
Retrieving the settings is needed in the backend dispatcher. Otherwise, 
I hope I could subclass Tx_Extbase_MVC_Controller_ActionController while 
having a way to do something at the beginning of an action as at the 
end, after the return but before any further processing (like 
discovering whether the view was rendered).

This would allow me to initialize ExtJS automatically (and I don't want 
to do this in initializeAction() because not all actions need it and if 
I do this in our Tx_MvcExtjsSamples_ExtJS_Controller_ActionController 
(which extends Tx_Extbase_MVC_Controller_ActionController), then I 
cannot be sure anymore that "users" will remember calling 
parent::initializeAction() if they need to initialize stuff themselves. 
And at the end, this would allow me to encapsulate the result in some 
backend layout if the controller is used from backend or simply output 
the view if in frontend.

There is perhaps some other solutions but I was too tired yesterday to 
investigate more ;-)

> I really appreciate what you all do with Extbase and push it to its limits!

:-)

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list