Whitenoise

How to set a custom displayField in CakePHP 3

Introduction

David Fava

David Fava


LATEST POSTS

RxJS scheduler 16th January, 2019

How to remove unused Docker images. 24th 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