Standard PHP replacement

You can replace the standard php files of the modules, such as DetailView.php, EditView.php and so on through the method:

SDK::setFile($module, $file, $newfile);

$module : the name of the module
$file : the value of the "action" parameter to be compared
$newfile: the new php source, without extension and without path

The $newfile must be in the same folder of the module and must be specified without an extension and without a path.

If you want to replace the ListView, you must call setFile twice, once with $file = "ListView" and once with $file = "index".

To remove the customization:

SDK::unsetFile($module, $file);

$module : the name of the module
$file : the value of the "action"

Hooks:
include/Ajax/CommonAjax.php
index.php

Back to top