[FLOW3-general] Pagination widget with security token
Thomas Plessis
t.plessis at totemnumerique.com
Fri Jan 13 11:50:47 CET 2012
Hi guys,
It seems that pagination widget does not work properly when you use it on a securated page (with security token). It seems that the "__csrfToken" is not passed to the next page link. Here is my Routes.yaml :
-
name: 'Items Pagination - First page'
uriPattern: 'admin/annonces/{__csrfToken}'
defaults:
'@controller': 'Item'
'@action': 'indexAdmin'
'@widget_0':
'@controller': ''
'@package': ''
-
name: 'Items menuAnnonces'
uriPattern: 'admin/annonces/{__csrfToken}/page/{@widget_0.currentPage}'
defaults:
'@controller': 'Item'
'@action': 'indexAdmin'
'@widget_0':
'@controller': ''
'@package': ''
It works for the first rule, not for the second one. When i change the second as that, it works :
-
name: 'Items menuAnnonces'
uriPattern: 'admin/annonces/page/{@widget_0.currentPage}'
defaults:
'@controller': 'Item'
'@action': 'indexAdmin'
'@widget_0':
'@controller': ''
'@package': ''
But I've a FLOW3 error saying that i'm not able to view this page for security reasons… :/
regards,
Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55
More information about the FLOW3-general
mailing list