close
  PHPDiscussion

Design Pattern



sundharscjpJan 30, 2007 4:06am
Hi , do any know the design pattern for PHP , apart from SMARTY. If not so have any tutorial to learn smarty as quick as possible.


feminaalbaFeb 19, 2007 4:55pm
Are you in search of template engine or design patterns?
If you do search for a smarty tutorial, I wrote one for beginners explaining also why code separation is a good practice. Have a look here: morningcaffeine.com/2007/01/21/smarty-templates-for-beginners/ [morningcaffeine.com/2007/01/21/smarty-templates-for-beginners/]


risyasinFeb 20, 2007 6:20pm
if u are looking for a template -simple- code...
-at least i thought by your words-

check out this very very simple code...
yasininat.com/tmp/php_simple_template.zip [yasininat.com/tmp/php_simple_template.zip]


i hope it's what you are looking for.
i must warn u before... it s very very simple... :)


philipnorton42May 6, 2007 1:22am
I wrote an entire application using SMARTY and it wasn't all that hard to pick up. I just read the important bits from the main smarty website at smarty.php.net. The quick install page will get you started with the basics. After that there is a sample application that they build which covers the middle ground.
After that I just stuck to the documentation index.


risyasinMay 14, 2007 5:11pm
hmm... problem must be on my side. coz i dont understand, why we need to use it ?! considering the smarty has a subdomain on php.net.
i gave it another chance.
trying to improve anything (!) with it.
but stucked. i ll go on my way :)


lucascaroJun 4, 2007 6:23am
well... you don't actually need to use it, but it's considered good practice. Smarty is simply a template system with years of development and lots of fans (i don't personally use smarty but other stuff that does something like that). but that's why it has a subdomain in the php.net and why almos everybody knows it. you should give it a try. make a site using smarty and someday when you need to change the looks of the site for example, you'll be glad you used it.
or something like that.


kreotonDec 4, 2007 6:22am
Smarty is not design patern :/ smarty is just templating system. Design paterns are mostly used in oop like singleton factory etc.


rykinOct 10, 2008 4:52am
Apart from smarty:
Savant 2
PHP-TAL
XTemplate
php
...among other things just google "php templating engine"

Design Patterns:
singleton
factory
decorator
strategy
iterator
observer
chain of command
...among other things just google "php design patterns"
EDIT: oh old old old. lol o. lol.


phpguruNov 25, 2008 2:33pm
term is wrong, these arenot design patterns, these are php based template engines.

Once upon a time I used to patTemplate, not bad enough flexible


Design Pattern


You need to Sign-up for StumbleUpon to post to this forum