Saturday, 20 August 2016
RENAME CONTROLLERS FOLDER IN PRESTASHOP
-------------------------------------------------------------------------------------------------------------
0) BEFORE INSTALLATION CHANGE FOLDER NAME controllers To CONGO
1) GO INSIDE ONE BY ONE IN NINE FILES BY NOTEPAD++
2) CHANGE LINES IN NINE FILES
3) FILE LINKS AND LINES ARE BELOW
--------------------------------------------------------------------------------------------------------------
1) C:\wamp\www\PrestaShop\classes\ConfigurationTest.php
LINE NO:36
--------------------------------------------------------------------------------------------------------------
'/CONGO/admin/AdminLoginController.php',
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2) C:\wamp\www\PrestaShop\classes\ControllerFactory.php
LINE NO: 42
--------------------------------------------------------------------------------------------------------------
require_once(_PS_CORE_DIR_.'/CONGO/'.$className.'.php');
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3) C:\wamp\www\PrestaShop\classes\Dispatcher.php
LINE NO: 267, 292,294,314,320,326
--------------------------------------------------------------------------------------------------------------
$controllers = Dispatcher::getControllers(array(_PS_FRONT_CONTROLLER_DIR_, _PS_OVERRIDE_DIR_.'CONGO/front/'));
$controllers = Dispatcher::getControllers(_PS_MODULE_DIR_.$module_name.'/CONGO/front/');
include_once(_PS_MODULE_DIR_.$module_name.'/CONGO/front/'.$this->controller.'.php');
$controllers = Dispatcher::getControllers(_PS_MODULE_DIR_.$tab>module.'/CONGO/admin/');
include_once(_PS_MODULE_DIR_.$tab->module.'/CONGO/admin/'.$controllers[strtolower($this->controller)].'.php');
$controllers = Dispatcher::getControllers(array(_PS_ADMIN_DIR_.'/tabs/', _PS_ADMIN_CONTROLLER_DIR_, _PS_OVERRIDE_DIR_.'CONGO/admin/'));
foreach (Dispatcher::getControllersInDirectory(_PS_MODULE_DIR_.$mod->name.'/CONGO/') as $controller) {
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4) C:\wamp\www\PrestaShop\classes\Meta.php
LINE NO: 91,
--------------------------------------------------------------------------------------------------------------
foreach (glob(_PS_MODULE_DIR_.'*/CONGO/front/*.php') as $file) {
--------------------------------------------------------------------------------------------------------------5) C:\wamp\www\PrestaShop\classes\PrestaShopAutoload.php
LINE NO: 140,
--------------------------------------------------------------------------------------------------------------
$this->getClassesFromDir('CONGO/'),
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------6) C:\wamp\www\PrestaShop\config\defines.inc.php
LINE NO: 99, 100,101
--------------------------------------------------------------------------------------------------------------
define('_PS_CONTROLLER_DIR_',
_PS_CORE_DIR_.'/CONGO/');
define('_PS_ADMIN_CONTROLLER_DIR_',
_PS_CORE_DIR_.'/CONGO/admin/');
define('_PS_FRONT_CONTROLLER_DIR_',
_PS_CORE_DIR_.'/CONGO/front/');
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------7) C:\wamp\www\PrestaShop\install\init.php
LINE NO: 58
--------------------------------------------------------------------------------------------------------------
define('_PS_INSTALL_CONTROLLERS_PATH_', _PS_INSTALL_PATH_.'CONGO/');
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------8) C:\wamp\www\PrestaShop\install\upgrade\php\p1606module_exceptions.php
LINE NO: 40,41,56,73
--------------------------------------------------------------------------------------------------------------
if (file_exists($module_path.'/CONGO/') && is_dir($module_path.'/CONGO/')) {
$module_path_admin = $module_path.'/CONGO/admin/';
$module_path_front = $module_path.'/CONGO/front/';
$controller_dir = _PS_ROOT_DIR_.'/CONGO/front/';
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------9) C:\wamp\www\PrestaShop\tools\profiling\Tools.php
LINE NO: 78
--------------------------------------------------------------------------------------------------------------
$controllers = Dispatcher::getControllers(array(_PS_ADMIN_DIR_.'/tabs/', _PS_ADMIN_CONTROLLER_DIR_, _PS_OVERRIDE_DIR_.'CONGO/admin/'));
--------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
I CHANGE controllers TO CAR
-------------------------------------------------------------------------------------------------------------
C:\wamp\www\PrestaShop\classes\ControllerFactory.php
C:\wamp\www\PrestaShop\classes\module\Module.php
C:\wamp\www\PrestaShop\config\defines.inc.php
C:\wamp\www\PrestaShop\install\upgrade\php\p1606module_exceptions.php
-------------------------------------------------------------------------------------------------------------
I CHANGE controllers TO CAR
-------------------------------------------------------------------------------------------------------------
C:\wamp\www\PrestaShop\classes\ControllerFactory.php
C:\wamp\www\PrestaShop\classes\module\Module.php
C:\wamp\www\PrestaShop\config\defines.inc.php
C:\wamp\www\PrestaShop\install\upgrade\php\p1606module_exceptions.php
-------------------------------------------------------------------------------------------------------------
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment