CJuiDialog for new model - CSRF

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!

Hi,

You might want to take a look at this extension http://www.yiiframework.com/extension/eupdatedialog/

Yes, this extension is for me! :)

Thank you.

Glad you like it :)

There are currently a few bugs, but I will try to fix them before the end of the week.