If you still use tools.php for php & sfmenu, I have a
revision of tools.php. I rewrote it as a class, and
change a couple things around to make it easier to
manage and put in php webpages.
The way I reworked tools, it should be this easy to
place a menu:
<?php
include(ROOTDIR.'/tools.php');
$sfmenu = new sfmenu(); /* look in tools.php for
passing values. */
?>
<html><head></head><body>
<?php
$sfmenu->place_menu(); /* place javascript */
$sfmenu->display_menu();
?>
</body>
</html>
I show it this way, because that is the general way to
include the php and maintain w3c compliance (which
there may still be a few issues with, but most are
ironed out).
Currently I'm working on a way to modify the menu in
php w/ mysql; I'm not sure if that is the best way to
go (instead of using php to read xml, and php pear to
write xml).
Hopefully this is helpful. I'll have a webpage up soon
that you can add to your list of users.
Log in to post a comment.