cakephp/cakephp — pull request #4122 by chinpei215 (2014-07-31 13:10:43+00:00)
Title: Fix a fatal error occurs in combination with a scaffold error.

Rendering scaffold_error.ctp causes a fatal error.
To reproduce, create a controller such as the following.

class ArticlesController extends AppController {
public $scaffold;

public function beforeScaffold() {
return false;
}
}

I have fixed this issue. (Though scaffolding will be removed in 3.0)