Hi!
I have the following setup.
index.php
calls a function to show tabs with content (showcontent() in class interface)
interface.php (class: interface)
showTabs() checks if all login prerequisites has been completed. If not it calls
controlRoutines($moduleitem) (class: interface)
This fetches a list of modules passed to the class, and includes files based on which modules are authorized. This file is loaded by an include in this method.
$Moduleitem = 2 in this case
code:
$output = include_once 'mdb_routines/module'.$moduleitem.'.php';
echo $output; // For debug: this outputs correctly
return $output; // This does NOT send the value $output;
this should return the content of the following file:
if (!isset($_SESSION['sender'])) {
$routines = 'HTML FORM HERE';
return $routines;
}
else {
return false;
}
As you can see, I can not return the value $output back to showTabs(). It will return this value: ( 2 )
What is wrong here?
PS: I've been trying different things, but this my latest attempt/code