Use hook to redirect
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
class AdminHotelReservationSystemManagementController extends ModuleAdminController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
Tools::redirectAdmin($this->context->link->getAdminLink('AdminHotelRoomsBooking'));
|
||||
}
|
||||
}
|
||||
@@ -478,6 +478,10 @@ class HotelReservationSystem extends Module
|
||||
|
||||
public function hookDisplayBackOfficeHeader()
|
||||
{
|
||||
if (Tools::getValue('controllerUri') == 'AdminHotelReservationSystemManagement') {
|
||||
Tools::redirectAdmin($this->context->link->getAdminLink('AdminHotelRoomsBooking'));
|
||||
}
|
||||
|
||||
$this->context->controller->addCSS($this->_path.'views/css/admin/css/hotel_admin_tab_logo.css');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user