It would be nice to have some code like to intergrate the photo script into an existing site, Like into a or table.
that would be nice... i tried to include the index.php this way but no success:
I called throgh Smarty... Anyone know what can it be?
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in DrojetosViniciusDaCostaWWWgaleriazenfunctions.php on line 32
Yep, zenphoto does not like being "included" into other pages. Not designed for it, frankly.
Much much easier to make a theme out of the pages you wanted to include instead. It's so easy to modify the theme to fit into a design that I wouldn't do it any other way.
I get it. In fact, minutes after reading this post I found another topic where you give the same explanation. Well, it's a pitty you have to rewrite your template always twice...
You think this may be a future change? To let ZP be more flexible?
I would suggest SMARTY template system... It's pretty easy to use and very powerful...
Keep up with the good work...
Yes, it could be a future change, it shouldn't be that hard to be able to include the program into other areas. It raises problems with keeping variables unique, stylesheets messing up (with the default theme) and many other things yet unforseen.
Like I say, my [i]belief[/i] is that it is much easier and simpler to go around the other way around and put ZP function calls into your design. You can even use your own includes in a ZP theme if that makes it simpler.
Any way you slice it or try to get around it, just calling "include" on any web app is going to be messy. Sorry ;-)