[TYPO3-mvc] Perfoming action based on URL variables
Søren Malling
soren.malling at gmail.com
Wed Mar 3 11:55:20 CET 2010
Hi,
I got past the extending fe_users part (really exciting way to work
and a great way of getting in to the whole MVC concept!) :-)
Now I got a new task: We are sending some json data from a ExtJS based
UI to the TYPO3 installation in order to update data. I've created a
seperate page that will be the "JSON DATA MASTER" (what a name..) and
here i tried to build a uri for use in the ExtJS when it comes to send
and receive data
I've used the following code:
$this->uriBuilder->setTargetPageType(my_typenum);
$this->uriBuilder->setFormat('json');
$url = $this->uriBuilder->uriFor('index', array(), 'Member');
index.php?id=35&type=my_typenum&tx_groupmembers_jsondata[action]=index&tx_groupmembers_jsondata[controller]=Member&tx_groupmembers_jsondata[format]=json&cHash=1bfadd841b5af503a850a787b9fb1260
What i think/expected was this URI to call a specific action (index)
on a specific controller (Member) but that is not the case, not output
(placed a echo 'something' in the indexAction of member controller).
Do i need to initialize something in my JsonDataController based on
the parsed URI arguments or in what way should/can I access the
specific controller and action?
Cheers,
Søren
More information about the TYPO3-project-typo3v4mvc
mailing list