git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12805 b9a71923-0436-4b27-9f14-aed3839534dd
24 lines
406 B
PHP
24 lines
406 B
PHP
<?php
|
|
|
|
class AdminNotFoundControllerCore extends AdminController
|
|
{
|
|
public function checkAccess()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function viewAccess()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function initContent()
|
|
{
|
|
$this->errors[] = Tools::displayError('Controller not found');
|
|
$tpl_vars['controller'] = Tools::getvalue('controller');
|
|
|
|
$this->context->smarty->assign($tpl_vars);
|
|
parent::initContent();
|
|
}
|
|
}
|