NguyenSinhThanh
Hello. I want to get value of url.
Example : index.php?id=2
I want to print 2 . I used {{ app.request.get('id') }} but, not work. Anyone?
Graham
NguyenSinhThanh I am really not sure if that will work on xtgems twig as a lot of the data is fixed on the servers for the functions that use twig
what I have done before to do this is split the url into a 2 part array at the ? and then split that further at any & and then at = to get the actual values
But I will do some further tests
NguyenSinhThanh
Graham Give me function get url . Example /_xt/...,?thanh=... {{app.request.uri}} ?
Graham
NguyenSinhThanh It depends on where you are getting the url from in the first place as the xtgem forum does not really use many query strings except for in the pagination