This example demonstrates how it is possible to define a custom template for a card view. All you need is to save your template as .tpl file and point PHP Generator to use it.