Whitenoise

How to set a custom displayField in CakePHP 3

Introduction

David Fava

David Fava


LATEST POSTS

How to remove unused Docker images. 24th September, 2018

Setting up Graylog behind Traefik (SSL with Let’s Encrypt). LDAP auth through FreeIPA. 23rd September, 2018

CakePHP 3

How to set a custom displayField in CakePHP 3

Posted on .

We can concatenate two fields into a virtual field which will become our new displayField.

In your Entity:

In your Table:

See also:

https://book.cakephp.org/3.0/en/orm/entities.html#creating-virtual-fields

David Fava

David Fava

There are no comments.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

View Comments (0) ...
Navigation