Zend의 최신 2.0 버전이 설치되었습니다. 컨트롤러에서 뷰를 정의하고 표시하는 데 문제가 있습니다. 새 ViewModel을 만들어 반환하면 잘 동작합니다. 예를 들어.보기를 할당하는 중 zend 오류가 발생했습니다.
public function __construct()
{
$this->view = new ViewModel();
}
$this->view->hello="hey";
$this->view->test="there";
return $this->view;
하지만 저는 Zend 1.8 이전 버전에서이 작업을 수행 할 필요가 없었습니다.
Strict Standards: Creating default object from empty value in /path-to-controller-file.php
내가 다른 곳으로 설정해야합니까 : 새로운 모델을 만들지 않고 , 그것은 나에게 다음과 같은 오류를 준다?