![]() |
|
php include in pages.php - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: php include in pages.php (/thread-5982.html) |
php include in pages.php - slaattnes - 2009-10-12 How do I get for example `` in a new page (like http://example.com/pages/test)? I put the code in "Codeblocks" but it doesn't seem to prosess the include command. echo ect. works though. php include in pages.php - acrylian - 2009-10-12 Do you try to incldue the standard 404 page? If why? Its already a page if its own. Besides the syntax is wrong php include in pages.php - slaattnes - 2009-10-12 It was just to test because I want to include something else. But it doesn't work with the right syntax either. I've put `` in Codeblock 1. Edit: What I really want to do is to use this code `` /ccmail/include.php is in the theme folder. php include in pages.php - acrylian - 2009-10-12 This can't work as the 404.php page is a full theme page that needs to be called via "page/404" or "index.php?p=404" to work correctly. Besides that it is an error page that does show nothing if there is no error... Also including complete pages into another one will lead to heavy validation issues... Try a snippet as the sidebar.php in the zenpage-default theme. php include in pages.php - acrylian - 2009-10-12 To your edit: You again did not use the brackets. Besides if it is in the theme you can include it using php include in pages.php - slaattnes - 2009-10-12 Like this? `` php include in pages.php - acrylian - 2009-10-12 You don't need the php include in pages.php - slaattnes - 2009-10-12 Oh, it's for a php script in include.php. `` doesn't work either though. php include in pages.php - acrylian - 2009-10-12 I don't know what it is you are trying to include so you will have to figure out that yourself, especially since it is not really Zenphoto related. php include in pages.php - kagutsuchi - 2009-10-12 As long as the include is in one of your theme pages, you don't need to include the $_zp_themeroot variable. You should be able to reference it directly from the theme already. Removing that should make it easier to figure out. |