user

How to set a custom displayField in CakePHP 3

Introduction

David Fava

David Fava


LATEST POSTS

How to issue ACMEv2 Wildcard with Certbot on Ubuntu 18.04 14th July, 2018

Jenkins and SSL: x509: certificate signed by unknown authority error 30th June, 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