Answer the question
In order to leave comments, you need to log in
How to correctly handle entity parameter output?
Good afternoon.
Question for the symphonists.
There is a table in which crm throws off the address in the format "value, , , value2, value3 ..." - roughly speaking, a string with separators. The task in the output of this entity parameter in the template is to remove empty values.
I came up with 3 solutions.
1) In the entity itself, in the parameter getter
2) In the controller, before sending the object, process it (IMHO is not correct)
3) Maybe somehow in the template you can use explode?
How to choose the right option, taking into account the fact that in the future crm may write it to the database in a different format and, accordingly, you will have to change the output processing, but all other entity parameters are displayed as written, i.e. only one entity parameter needs to be processed.
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question