Thanks PeejAvery, I see the error, it's in the menu.php:
previously I send three params at the function 'add()' of class 'MenuItem'Code:<?php include_once("../scripts/MenuBar.class.php"); $menu = new MenuBar(); $menu->add(new MenuItem("Google", "http://www.google.co.cr/", "_blank"));//line (5) of error (resolved) $menu->show(); ?>
Before:
Now, I send only one param, yes, my 'add()' only recv one param (type of 'MenuItem')!!Code:$menu->add("Google", "http://www.google.co.cr/", "_blank"));//line 5, bad!
After:
Thanks again PeejAvery!!Code:$menu->add(new MenuItem("Google", "http://www.google.co.cr/", "_blank"));//line 5, good!




Reply With Quote