simple pagination for silex micro-framework