Mau tanya smarty form menggunakan beginWidget
Saya pake kode seperti ini:
{$this->beginWidget('CActiveForm', [
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>[
'validateOnSubmit'=>true
]
],true)}
muncul pesan error:
Object of class CActiveForm could not be converted to string
Apa yang perlu saya tambahkan?
Jika menggunakan widget (seperti kode dibawah) tidak bermasalah namun akan langsung terbentuk satu form (form buka dan form tutup):
{$this->widget('CActiveForm', [
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>[
'validateOnSubmit'=>true
]
],true)}
hasil:
<form id=...></form>
Mohon pencerahan, thanks…