Shit, I did not read your question.
To add an assistant to your error controller, simply add this line:
$this->controller->helpers = array('Javascript');
:
-, app_controller , .
-, , . error.php (NOT webroot) :
<?php
class AppError extends ErrorHandler {
function error404($params) {
$this->controller->helpers = array('Javascript');
parent::error404($params);
}
}
$this->controller->set('title_for_layout', "We couldn't find what you are loooking for");
.