Looping all Albums for a <ul><li>...

Hi,

i want to loop all albums and subalbums to create a navigation. I thought that I had found a similar function in the upload section of the backend. But i'm not so good in the OO stuff . Could please someone tell me what this error message means?

[code]
<?PHP

$folderlist = array();
genAlbumList($folderlist);
natcasesort($folderlist);
$albumlist = array_flip($folderlist);
foreach ($albumlist as $path => $value){
//etc
}
?>

[/code]

[error]

Fatal error: Call to a member function getAlbums() on a non-object in /Users/rhizom/Sites/zenphoto/zp-core/admin-functions.php on line 239

[/error]

Do i have to set a context first? Or initiate a object?

Thank you
Volkan

Comments

  • This looks like the (old) code in admin.php. It creates an array of strings that contains the "names' of the album folders. You should probably be lookint at `print_album_menu.php` in the zp-core/plugins folder.
  • Thank you...
Sign In or Register to comment.