Re: [SMARTY] navigation with ?goto=action - what is better for that? php oder smarty?

From: Date: Wed, 21 Jul 2004 07:30:11 +0000
Subject: Re: [SMARTY] navigation with ?goto=action - what is better for that? php oder smarty?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11617@lists.php.net to get a copy of this message
hello Vonleigh,
I like to use easy to read paths /contact or /me/something. So that if I ever switch the site to something else, java, whatever, as long as I maintain the paths all links to me continue to work. you definitely have got a point there. apart from easier to read and more user-friendly URLs, your approach should prevent linkrot and give the google-bot something to chew on, unless one is using mod_rewrite for apache i guess. thx.
I'd do it in PHP with smarty->fetch. Then assign the result of fetch to a variable that's in the main template, make sure to give it a long cache if it's static content. That way you can make the content simple html in a separate file. i'm currently including my page "modules" with {include file="f00.tpl"} as suggested in the documentation, why would one use php in this case? my modules like header navi or footer are simple html anyway since they're the building blocks of my xhtml pages.
- Thorsten

« previous php.smarty.general (#11617) next »