Beginner to HTML_Template_Flexy

From: Date: Thu, 13 Jan 2005 04:31:02 +0000
Subject: Beginner to HTML_Template_Flexy
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16908@lists.php.net to get a copy of this message
Hi Everyone, I am very new to PEAR and I am trying to use the Flexy templating engine. I would appreciate any help provided. What I am trying to do is create a website based on templates using Flexy. My site will have different sections and each section will use the same basic page layout. However, each section could have different content in the sidebar, the footer, menu area, etc. I need Flexy to load the main template of my site and then based on the different sections, to load each section's content based on the folder location. For example, if I am on the "Profiles" section, then I want the sidebar.inc, menu.inc, footer.inc to load from the /templates/profile/ folder. This should happen ONLY if those files exist. If any of those includes do not exist, then the default sidebar.inc, menu.inc and footer.inc should be loaded from the parent /templates/ folder. The problem I am having right now is.. within my main template file, I am trying to the php include call to include the different sections, but it seems like Flexy is totally ignoring the include calls. How do I make one template include another template in flexy? thank you, ramin

« previous php.pear.general (#16908) next »