* 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?
2014-09-12 16:14 · (0)
* 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
2014-09-12 17:28 (edited 2014-09-12 17:31 by Graham ) · (0)
* NguyenSinhThanh * Graham Thank. I will use split
2014-09-12 17:52 · (0)
* NguyenSinhThanh * Graham Give me function get url . Example /_xt/...,?thanh=... {{app.request.uri}} ?
2014-09-12 17:54 (edited 2014-09-12 17:56 by NguyenSinhThanh ) · (0)
* 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
2014-09-12 19:02 · (0)
* NguyenSinhThanh * Graham It is thread forum
2014-09-12 23:45 · (0)

Online: Guests: 1