Consider the following situation:
file: ./ include / functions / table-config.php containing:
.
.
$tablePages = 'orweb_pages';
.
.
file: ./ include / classes / uri-resolve.php containing:
class URIResolve {
.
.
$category = null ;
.
.
function process_uri() {
...
$this->category = $tablePages;
...
}
.
.
}
file: ./ settings.php containing:
.
.
require_once(ABSPATH.INC.FUNC.'/table-config.php');
require_once(ABSPATH.INC.CLASS.'/uri-resolve.php');
.
.
Will it work. I mean that access to $ tablePages from process_uri () will be acceptable or give positive results.Please suggest corrections or workarounds if an error may occur.
source
share