Hi,
I’ve readed documentation about create new model via CJuiDialog.
http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/
But, it’s no work with enabled CSRF. Window is opening, but not show anything.
If I replace code (from example) in CHtml::ajax() :
from
'data'=> "js: $(this).serialize()",
to
'data'=>'js: {' . Yii::app()->request->csrfTokenName . ':"' . Yii::app()->request->csrfToken . '"}',
window is opening with form, but there is no possible to send form.
Any idea?
Regards!