10-28-2017, 05:47 PM
Hi whatwilldo,
How're you? Welcome!
Call the init using a require once and your securePage. Try this:
<?php require_once '../users/init.php';?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
The ../ gets you out of your current directory and to the init file...there are other ways you can do this but that is the best way I have find currently...let me know what else you need.
Also note: I know nothing about Slim and Twig so what I'm saying very well could be wrong!
B.
How're you? Welcome!
Call the init using a require once and your securePage. Try this:
<?php require_once '../users/init.php';?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
The ../ gets you out of your current directory and to the init file...there are other ways you can do this but that is the best way I have find currently...let me know what else you need.
Also note: I know nothing about Slim and Twig so what I'm saying very well could be wrong!
B.