- [CakePHP] How to show ‘all’ records options while still using paginate
Admittedly this is a marginal case but recently a client wanted to show “All” records along with a list of ‘per page’ options for paginated records, for example, something like ‘2, 5, 10, 25, 50, 100, All’ or you need to use ‘field sort’ feature of pagination while displaying all records. So, following is a […]
- [How to] Using wp_redirect() without getting errors
Recently I worked on a wordpress plugin where I want to redirect users to the listing page after the data gets successfully saved into the database table. To redirect users to a different page generally we use wp_redirect() function available in wordpress. I tried using the same wp_redirect() function using following code. PLAIN TEXT PHP: […]
- Overview of the new SPL features in PHP 5.3
Today we take a look at another powerful yet still neglected feature that’s part of the PHP 5.3’s stable. It is the latest offerings in the SPL (Standard PHP Library). While SPL has been around since a long time with PHP 5.3, some useful features were introduced. While they might not be the sexiest thing […]
- [HowTo] Page expire on browser back/reload in CakePHP
You might have seen this on many banking sites that the navigation has to be done only via the links and buttons provided on the webpage and if a user clicks the browser’s back or reload button, it shows a page expired error. Let’s see how it can be done in CakePHP. We will set […]