Skip to content

CakePHP

The Football Stars application

Tag: PostsController

Pagination

The pagination is already visible on each of the index application pages but it is disabled. In order to enable it, the following codes were included in PostsController.php and CommentsController.php. This code set a limit of 3 comments/posts per page and ordered them by their id:
pagination

The Comments page with 3 comments per page:
pagination1

Author ewaadoniec_1738f0vrPosted on April 27, 2016April 27, 2016Categories paginationTags CommentsController, PostsController

Recent Posts

  • Nature and Aims of the CakePHP Application
  • Database Structure & Possible Roles
  • Cakephp’s Auth Component – add new users, drop down menu for ENUM
  • Cakephp’s Auth Component – edit users
  • Cakephp’s Auth Component – validation

Archives

  • May 2016
  • April 2016

Categories

  • auth component (11)
  • cakephp (4)
  • general (3)
  • layout (3)
  • media (1)
  • pagination (1)
  • routes (2)
  • sanitization (1)
  • validation (2)

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
CakePHP Proudly powered by WordPress