Getting Started

We’ll assume you already have a Phalcon app with your models, controllers, etc. For this example we’ll be focusing on Phalcon v1.4x, but the v2.0 version should not be much different.

To make things a little easier, we’ve created a couple components that will make your life easier. Add these packages to your composer.json file and run composer update

The volt-helpers package contains some general Volt functions we need. For this article we’ll be using the paginationPath() function. The phalcon-table-sort package contains two useful Volt functions we’ll need for sorting, sortLink() and sortIcon().

To make use of these you’ll need to add them to your Volt service when it is declared.