add 404 rule in admin

This commit is contained in:
Manuel Raynaud
2013-06-26 10:45:43 +02:00
parent 83318ccd2f
commit 200ace2fc0
5 changed files with 30 additions and 3 deletions

View File

@@ -23,6 +23,7 @@
namespace Thelia\Admin\Controller;
use Symfony\Component\HttpFoundation\Response;
use Thelia\Form\AdminLogin;
class AdminController extends BaseAdminController {
@@ -55,4 +56,12 @@ class AdminController extends BaseAdminController {
return $adminLogin->buildForm($form, array())->getForm();
}
public function lostAction()
{
return new Response(
$this->renderRaw("404.html"),
404
);
}
}