D
D
DileSoft2011-03-09 10:00:31
PHP
DileSoft, 2011-03-09 10:00:31

PHP Framework with wide settings of additional model parameters?

What I mean. For example, in Symfony, you can build a YML prototype of a model, and they will generate a base and standard modules from it. However, if I want to add additional data to the model that is not related to the database (for example, their understandable names in Russian attached to the fields, or icons, or something else), then this is already difficult. Is there a framework that supports this functionality?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max Kuznetsov, 2011-03-09
@pluseg

Is PHP forbidden in Symfony models? besides, maybe it's worth putting all this "additional data" into the controller or even into the display?

H
homm, 2011-03-09
@homm

I think in any framework, the field type is a separate class, and a specific field is an instance of this class. Nothing prevents in the place where you set the fields for the model (or after), set additional attributes for them, or generally stamp your fields inherited from the base ones, if rich functionality is needed. That's just to be inherited through copy-paste, tk. through multiple inheritance in php in any way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question