Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1007 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Smarty - Yes or No?

Thread title: Smarty - Yes or No?
Closed Thread  
Page 2 of 4 < 1 2 3 4 >
    Thread tools Search this thread Display Modes  
11-12-2007, 11:39 PM
#11
viciozo is offline viciozo
Status: Member
Join date: Nov 2007
Location: /home/viciozo
Expertise:
Software:
 
Posts: 104
iTrader: 5 / 100%
 

viciozo is on a distinguished road

Send a message via MSN to viciozo

  Old

I think Smarty has two sides, the good one and the bad side.

Good side:
- Let's you create template able sites with a few lines of PHP
- It's free!
- Open source!

Bad side:
- Learn the framework coding
- Someone with none PHP knowledge or beginner designer can be hard to design

Depends how you see it....

11-13-2007, 12:55 AM
#12
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

The downs are hardly downs, the smarty language takes about a day to learn, the second down could be said about advanced PHP concepts.

A templating system is needed for a larger script, that way you can change the template without screwing up the code, vB uses one (not smarty) so we can have multiple skins.

11-13-2007, 01:14 AM
#13
Wildhoney is offline Wildhoney
Wildhoney's Avatar
Status: Request a custom title
Join date: Feb 2006
Location: Nottingham
Expertise:
Software:
 
Posts: 1,648
iTrader: 18 / 95%
 

Wildhoney is on a distinguished road

Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney

  Old

Mentioning vB to backup your argument does you no favours at all. It'd definitely be in my top 10 of the most badly coded pieces of software ever. Period. Templating systems are needed but Smarty's way of doing things is a joke. There's just no way I could go back to such a scruffy way of coding.

11-13-2007, 01:36 AM
#14
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Granted, vB isn't a well coded program. If you have a better templating system then smarty, I'm all ears.

11-13-2007, 02:39 AM
#15
Wildhoney is offline Wildhoney
Wildhoney's Avatar
Status: Request a custom title
Join date: Feb 2006
Location: Nottingham
Expertise:
Software:
 
Posts: 1,648
iTrader: 18 / 95%
 

Wildhoney is on a distinguished road

Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney

  Old

I just stick to an MVC pattern - which is technially what Smarty does also. I have absolutely no problem with that aspect of Smarty. I just impassionately dislike Smarty's introduction of a new programming language. It's both impractical and sluggish.

11-14-2007, 02:14 AM
#16
narutorasengan17 is offline narutorasengan17
narutorasengan17's Avatar
Status: I'm new around here
Join date: Nov 2007
Location:
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

narutorasengan17 is on a distinguished road

  Old

do old browsers even support these "home grown languages"?

11-14-2007, 04:58 AM
#17
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

What? PHP is a server side language, all the browser has to support is HTML.

Edit: *looks at post count* nvm, it all makes sense.

11-27-2007, 02:28 PM
#18
doltter is offline doltter
doltter's Avatar
Status: I'm new around here
Join date: Nov 2007
Location:
Expertise:
Software:
 
Posts: 24
iTrader: 0 / 0%
 

doltter is on a distinguished road

Send a message via MSN to doltter Send a message via Yahoo to doltter Send a message via Skype™ to doltter

  Old

I say no!!!
I hate assign!

I use template engine create by myself. Some of the logic is likely SMARTY, but I cut assign off, and some other tools.

12-17-2007, 04:43 PM
#19
Xeoncross is offline Xeoncross
Status: I'm new around here
Join date: Dec 2007
Location:
Expertise:
Software:
 
Posts: 19
iTrader: 0 / 0%
 

Xeoncross is on a distinguished road

  Old

Smarty has it's place - in a work environment of a team of 12.

But if you are the ONLY one working with it then it is a waste of time a resources to load that whole lib. I built my own templating system that is WAY faster than smarty while still allowing PHP code inside of templates. The reason it works for me is because only 1-3 people will be working with it and they aren't going to be doing stupid stuff with PHP code.

An example is wordpress. It is a blog for 1+ people so they don't mess with something so big as smarty. If the author wants' to hack his own site from the template files - they won't stop him.

So what is your need? Group? or Personal?

Smarty >= 10 > ob_start() and PHP

12-31-2007, 04:23 PM
#20
phpintheusa is offline phpintheusa
phpintheusa's Avatar
Status: I'm new around here
Join date: Dec 2007
Location: Tennessee
Expertise:
Software:
 
Posts: 20
iTrader: 0 / 0%
 

phpintheusa is on a distinguished road

Send a message via MSN to phpintheusa

  Old

Creating your own plugin based template system is very simple and then you can be sure that you won't have all of the bugs that smarty has always been associated with.

Closed Thread  
Page 2 of 4 < 1 2 3 4 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed