Re: Plugin: bbMenu 0.1 beta
Can you confirm what I asked earlier about the content of $rw[“location”]?
If that is what you’re doing then modify this example:
<?php
function exampleOne() {
return "bb";
}
function exampleTwo() {
return "press";
}
$rw["one"] = "exampleOne";
$rw["two"] = "exampleTwo";
$switchOne = call_user_func($rw["one"]);
$switchTwo = call_user_func($rw["two"]);
echo($switchOne);
echo($switchTwo);
?>
Obviously you don’t need the example methods, but just use call_user_func on the name of the method you’re pulling from the DB.