tPoint (mainly the tpointCoreBundle) contains multiple Services and Extension to Symfony and Twig.
Some Libraries are embedded directly to the CoreBundle and can be used everywhere
Use Routes in the JS-Methods
<script type="text/javascript" src="{{asset('/bundles/fosjsrouting/js/router.js')}}"></script>
options.expose: true
to the route.tpoint_projectfile_document_list:
path: /
defaults: { _controller: "tpointProjectFileBundle:Document:index" }
options:
expose: true
Routing.generate('tpoint_projectfile_document_list', {'project_id': project_id_value })
(for Ajax-Select2)