Member
Member
MuschPusch   2007-11-28, 23:56
#1
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
Member
Member
sbillard   2007-11-29, 00:39
#2
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.
Member
Member
MuschPusch   2007-12-01, 17:00
#3
Thank you...
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.