SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Jun 18, 2007, 14:39 #1
- Join Date
- May 2005
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Where can i learn how to make a good template class?
I've searched the internet high and low to find a article that covers how to make a good template class but i cannot find one any where.
I can find articles that make tutorial classes but they do not show you how you can use databases with them they are normally just simply replacing variables and outputting a page.
Does any one know of a good article that covers it all?
thanks
-
Jun 20, 2007, 00:39 #2
Start here: http://mt-soft.org/my_articles.php?id=1
And continue by yourself ... At the end ... see the code of Smarty
-
Jun 20, 2007, 02:17 #3
- Join Date
- Sep 2004
- Location
- Norway
- Posts
- 1,198
- Mentioned
- 4 Post(s)
- Tagged
- 1 Thread(s)
There are different types of template engines, so the answer to your question depends on which one you want to create.
There is an old article right here on SitePoint which should be able to point you in the right direction at least.
http://www.sitepoint.com/article/beyond-template-engine
I would not advice you to take a closer look on the Smarty code, imo its bloated.
-
Jun 20, 2007, 05:10 #4
- Join Date
- May 2005
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by itportal
And then with the looping bit i was on about so you can do that with multipul results.
Originally Posted by TheRedDevil
Bookmarks