Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

http://www.tech-salon.com

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Showcase
View previous topic :: View next topic  
Author Message
mbouclas
Smarty Rookie


Joined: 10 Feb 2004
Posts: 6

PostPosted: Tue Feb 10, 2004 11:04 am    Post subject: http://www.tech-salon.com Reply with quote

Smarty at its best.Tech-salon is a technology news site which is based on smarty. The entire front-end is in HTML so that it is search engine friendly, and it is essentially the output of the smarty templates. All the data gathered from the database are passed to the smarty templates and then they are saved as .html files on the disk. Let me know what you guys think of it.
Back to top
View user's profile Send private message Send e-mail
philjohn
Smarty Rookie


Joined: 26 Feb 2004
Posts: 8

PostPosted: Thu Feb 26, 2004 1:06 pm    Post subject: Would it not be simpler to use mod_rewrite? Reply with quote

Or, failing that, what I do for hosts that don't support it:

Parse the uri line, so you get

http://www.yoursite.com/index.php/fuseaction/shop.addToCart/productid/53.html

then simply remove the http://www.yoursite.com/, remove the .html and then explode the /'s leaving you with your keys/values which can then be put into proper vars with the variable variable ($$varname).

Just a thought, nice site though. Very Happy
Back to top
View user's profile Send private message
mbouclas
Smarty Rookie


Joined: 10 Feb 2004
Posts: 6

PostPosted: Thu Feb 26, 2004 1:21 pm    Post subject: Re: Would it not be simpler to use mod_rewrite? Reply with quote

I'm aware of the apache mod rewrite but i wanted the entire site to be static. Several reasons lead me to that decision, the main ones were: search engines seem to treat html better, easier url's for the users to remember, if anything happens to the mysql database there will always something online for the users to see and many more.
Back to top
View user's profile Send private message Send e-mail
philjohn
Smarty Rookie


Joined: 26 Feb 2004
Posts: 8

PostPosted: Thu Feb 26, 2004 3:00 pm    Post subject: I see where you are coming from: Reply with quote

I've managed to find ways around most of thos problems (using ADOdb to dynamically cache database queries etc). I was really pleased when a client who uses my companies e-commerce software had their entire (dynamic) site hoovered up by google...all done via php, no mod_rewrite in sight! ;o)

But yeah, I see what you mean with easy to remember url's, that's something that many web developers forget these days/
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Showcase All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP