Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    How to add pagination to the values coming from an API

    General Discussion
    php
    2
    3
    404
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      foxmolder last edited by foxmolder

      I am using a php API to get some details and I want to put a pagination on it I have no idea yet about that, below is the details given to us by the API

      array (size=3)
      0 =>
      object(stdClass)[2]
      ...
      1 =>
      object(stdClass)[5]
      ...
      2 =>
      object(stdClass)[8]
      ...
      public 'cursor' => int 4
      public 'hasMore' => boolean true

      1 Reply Last reply Reply Quote 0
      • lkdev
        lkdev last edited by lkdev

        can you provide API response as a JSON format, also need to check the url

        1 Reply Last reply Reply Quote 0
        • F
          foxmolder last edited by

          any example

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          0
          Online

          3.6k
          Users

          1.3k
          Topics

          5.3k
          Posts

          • Privacy
          • Terms & Conditions
          • Donate

          © Copyrights and All right reserved Lanka Developers Community

          Powered by Axis Technologies (PVT) Ltd

          Made with in Sri Lanka

          | |