Re: Beginner to HTML_Template_Flexy

From: Date: Thu, 13 Jan 2005 05:17:48 +0000
Subject: Re: Beginner to HTML_Template_Flexy
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16909@lists.php.net to get a copy of this message
It works differently to normal block based engines. What I do is compile the template u wantinside a function or method , and then call that method inside the main template. I know there is away to compile to a string rather than outputting it but never tried it yet. > 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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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