...
|
...
|
@@ -21,6 +21,7 @@ class ErrorController extends AbstractAction |
|
|
|
|
|
public function errorAction($exception)
|
|
|
{
|
|
|
|
|
|
header('HTTP/1.1 404 Not Found');
|
|
|
header('Status: 404 Not Found');
|
|
|
|
...
|
...
|
@@ -31,12 +32,11 @@ class ErrorController extends AbstractAction |
|
|
$this->setTitle('页面不存在');
|
|
|
$this->setNavHeader('抱歉,页面不存在!', true, SITE_MAIN);
|
|
|
|
|
|
// 生成HTML (error.html)
|
|
|
$this->_view->html('error');
|
|
|
// 渲染模板
|
|
|
$this->_view->display('index', array(
|
|
|
'pageFooter' => true,
|
|
|
'showDownloadApp' => true,
|
|
|
'errorPage' => array(
|
|
|
'newProductLink' => '###'
|
|
|
),
|
|
|
'pageFooter' => true
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
|