<fieldset> name attribute not set on form xml
Joris Ceelen
New Member
Posts: 9
9 года 11 мес. назад - 9 года 11 мес. назад #506
от Joris Ceelen
Joris Ceelen создал тему: <fieldset> name attribute not set on form xml
Hello
I think that when the:
<fieldset> name attribute is not set on the generated form xml of the model,
the following code does not work in a tmpl file::because:orreturns nothing
I suppose you can the name attribute to "default" when generating the form XML for the componentThanks, Joris
I think that when the:
<fieldset> name attribute is not set on the generated form xml of the model,
the following code does not work in a tmpl file::
$fields=$this->form->getFieldset() ;
foreach ($fields as $field) {
$this->form->setFieldAttribute($field->fieldname, 'readonly', 'true');
}
$fields=$this->form->getFieldset() ;
$fields=$this->form->getFieldsets() ;
I suppose you can the name attribute to "default" when generating the form XML for the component
<fieldset name="default">
Последнее редактирование: 9 года 11 мес. назад пользователем Joris Ceelen.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Время создания страницы: 0.046 секунд