[TYPO3-ect] ajax and class per controller model

Christian Welzel gawain at camlann.de
Wed Jun 27 12:29:13 CEST 2007


Elmar Hinz wrote:

>> currently i'm trying to integrate some ajax stuff into the
>> kickstarter__mvc to make the it easier for new exts to use that
>> technology.
> 
> ajax in kickstarter__mvc. Wow. Hope that isn't to oversized for the users.
> Hower, it could become a bestseller.

The ajax is not in the kickstarter__mvc itself but in the code generated
for new extensions.
And every user can decide, if he wants to have ajax available. Its a simple
matter of clicking a checkbox.
 
>> for the "method per action" model i found a clever solution to get this
>> done (at least i think so :)), but for the other model where each action
>> is an own class i have to clever idea, how to make this.
> 
> Do we have this? Guess you think of one of the following cases:

> 2.) Switched (example efaq):
> 
> (Like standard, but with flexform controlled subplugins below one plugin.)
> 
>  * One controller class per subplugin.

I mean exactly that case.
My main goal is to make an exsisting action callable through ajax. i do not
want to generate a new action only for that case.
so my idea was to use the switch-class with an get parameter in the url for
the action (something like "http://host/index.php?id=xxx&type=yyy&action=foo" 
as url for xajax). but the switch does only react on flexform not on get parameters.

so do we need to modify the switch or is there a better way to archive this?

(in case 1 i did it with doPreActionProcessings() of controller class)

-- 
 MfG, Christian Welzel

  GPG-Key:     http://www.camlann.de/key.asc
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15


More information about the TYPO3-team-extension-coordination mailing list