1
While writing a module I thourght I would try using switch.
But I am having trouble with it, I'm using the code below only to test it but it keeps going to the default and none of the others.
include "../../mainfile.php";
include XOOPS_ROOT_PATH."/header.php";
switch ($pageid) {
case "test":
echo'hello';
break;
case "test2":
echo 'bye';
break;
default:
echo'index';
break;
}
include_once XOOPS_ROOT_PATH."/footer.php";
Could someone please point out where I'm going wrong.
Thanks in advance