CakePHP - limit number of results per page.

Reading time ~1 minute

This one is a simple trick, and one to remember. Add this little line to the controller (/App/Controller/UsersController.php to control how many results per page are loaded. You can also use this same method to manipulate the results in other ways as well (See this for more details.)

<?
public $paginate = array( 'limit' => 25, 'order' => array('Post.title' => 'asc'));
 

Asyncio Basics Python 35

# Asyncio basics in pythonPython 3.5 brought with it asyncio. An event loop based paradigm previously available as a library but now it i...… Continue reading

Quick Laravel/Lumen install with Docker!

Published on March 02, 2016

PHP To Python

Published on February 24, 2016