Encountered Error

Discuss everything related to ApPHP TreeMenu. Any questions related to the ApPHP TreeMenu developing or using should be posted to this forum.

Moderators: alexandrleonenko, Milton

TrakSoft
Newbie
Newbie
Posts: 1
Joined: Dec 2nd, '11, 19:37

Encountered Error

Postby TrakSoft » Dec 2nd, '11, 19:47

I'm trying to create a simple treemenu, but I am getting an error in my path and cannot get past it.

The error reads "Fatal error: Call to undefined method TreeMenu::SetPath() in /homepages/37/d90436/htdocs/test/AMaster/PAGE_component_init.php on line 87"

define ("TREEMENU_DIR", "comp/tree/");
require_once(TREEMENU_DIR.'treemenu.class.php');
$treeMenu = new TreeMenu();
Line 87: $treeMenu->SetPath(TREEMENU_DIR);

I've tried several different versions of the path, such as
/comp/tree/
./comp/tree/
../comp/tree/

Nothing seems to work.

I looked into the treemenu.class.php code and did not see a SetPath() function. Should it be SetPath or something else?

Any help will be greatly appreciated.

Thanks,

Gary

Milton
Senior
Senior
Posts: 31
Joined: Jan 14th, '10, 14:17

Re: Encountered Error

Postby Milton » Dec 3rd, '11, 09:54

It's an error in the documentation. Actually SetPath function doesn't exist and you don't need it. define ("TREEMENU_DIR", "comp/tree/");
is enough. Sorry for inconvenience.


Return to “ApPHP TreeMenu”