D
D
dro1d2016-02-11 15:41:45
css
dro1d, 2016-02-11 15:41:45

How to set css class for input fields in CRUD template?

I want form_.php to have the following code:

<?php echo $form->labelEx($model,'data_loaded',array('class' => 'col-md-3 control-label')); ?>

In the CRUD template, the code to generate this string looks like this:
<?php echo "<?php echo ".$this->generateActiveLabel($this->modelClass,$column)."; ?>\n"; ?>

But I still don’t understand how can I make it so that I can set the CSS class of this object through a CRUD template?
array('class' => 'col-md-3 control-label')
Found a solution from some Indians
www.yiiframework.com/forum/index.php/topic/33700-g...
but I would like to hear more beautiful solution. Thank you.
UDP forgot to clarify, Yii first version

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2016-02-11
@bitver

What do you understand by the word beautiful?)
You create a template and generate it, everything is quite simple and in that link it is said in the first posts.
https://github.com/yiisoft/yii2-gii/blob/master/do... here it is chewed on the shelves where to poke the mouse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question