OZONE Asylum
Forums
Outpatient Counseling
need some advice on approach to something please :)
This page's ID:
30787
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
OK. I have been working with Smarty for a couple of days and reading the documentation and such. I ran into a snag and I am having a hard time getting my head around this. is there a "smart" way to just change the content based on the link? I know it sounds stupid but...I can't figure this out. I am used to using a switch statement in PHP to pull in the page. I typically just put the pages in different directories and call them up. [code] directory1 page1 page2 page3 directory2 page1 page2 page3 [/code] but how to accomplish this in Smarty is making my head hurt. I know you can include a file as in : [b]index.php[/b] [code] $smarty->assign('Sectionfile','page1.html'); [/code] [b]index.tpl[/b] [code] {include file="../directory1/$Sectionfile"} [/code] any help is appreciated. Thanks :) Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »