I have a paginator class which should get the limit out of the config.xml and the current page from the controller.
How do I define the limit in config.xml and how can I access it outside the controller?
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Define your paginator class as DIC service and add
service_containeras a service e.gAnd then in you
services.ymlof your bundle.And in your controller you can get access of the
Paginatorin following way.For more info about it you can check Service container section of Symfony Documentation.