debugger;
чтобы найти вызывающую структуру foreach ($posts as &$post) {
Caution
This function expects filename to be a valid image file. If a non-image file is supplied, it may be incorrectly detected as an image and the function will return successfully, but the array may contain nonsensical values.
Do not use getimagesize() to check that a given file is a valid image. Use a purpose-built solution such as the Fileinfo extension instead.
public function actionRenderForm(...) {
....
$this->renderPartial('form', array(...), false, true);
}
, в основной вью (которую рендерит actionView или actionEdit, не знаю, как у вас) добавьте jquery код по загрузке формы, что-то вроде(function($) {
$.get(".$this->createUrl('renderForm').", {...}, function(data) {
$('#formHolder').append(data);
});
})(jQuery)