2
Zend로 배열을 게시하고 싶습니다.젠드 양식이 포함 된 멀티 파트 데이터 게시
HTML 양식 :
<form id="form" class="form-container" action="<?php echo $this->form->getAction(); ?>" method="post" enctype="multipart/form-data">
<?php foreach ($this->projects as $item): ?>
<?php echo $this->form->time_on_project; ?>
<?php echo $this->form->comment; ?>
<?php endforeach; ?>
젠드 형태 : 그 후
$this->addElement('text', 'time_on_project[]', array(
'label' => 'Время(формат час:минуты):',
'required' => true,
'attribs' => array('class' => 'form-field', 'required' => 'required', 'placeholder' => 'Введите время в формате час:минуты'))
);
$this->addElement('textarea', 'comment[]', array(
'label' => 'Что сделано:',
'required' => false,
'attribs' => array('class' => 'form-field', 'style' => 'height: 100px')
));
, 내 입력은 표시되지 않습니다. 그것을 올바르게 만드는 방법? 도움 주셔서 감사합니다.
멋진, 덕분에 당신은 환영합니다 – Stopper
.. :) –