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 693 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 1 of 4 1 2 3 4 >
    Thread tools Search this thread Display Modes  
10-30-2007, 10:48 AM
#1
Haris is offline Haris
Status: Request a custom title
Join date: Dec 2005
Location:
Expertise:
Software:
 
Posts: 2,741
iTrader: 9 / 100%
 

Haris is on a distinguished road

  Old  Smarty - Yes or No?

Some experts(exclusions are coder of PHPLD,phpBB and more) don't like the use of Smarty. Somehow, I agree with them because I have to learn a new language(sub-language) which is not similar to PHP. I like the cleanliness of a templating engines like Savant(lacks documentation) but then another confusion bumps into my mind that if smarty is slow, why do scripts like PHP link directory, phpBB uses the engines based off smarty?

Discuss!

10-30-2007, 11:10 AM
#2
fooblah123 is offline fooblah123
Status: .
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 1,868
iTrader: 4 / 86%
 

fooblah123 is on a distinguished road

  Old

Nope, its hard to skin for the none PHPer

10-30-2007, 01:47 PM
#3
penguinburner is offline penguinburner
Status: Junior Member
Join date: Sep 2007
Location: Australia
Expertise: Programming, UX
Software:
 
Posts: 80
iTrader: 3 / 100%
 

penguinburner is on a distinguished road

  Old

I wouldn't, but I could be a bit biased since I usually prefer to build things on my own so I know how it works entirely.

I've considered using it but there was a few others that seemed smaller and more efficient, but usually went with something custom

10-30-2007, 02:24 PM
#4
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

I like smarty, true that it is its own language, but I picked up enough to do almost anything with it in a day. Smarty is really easy once you get the hang of it, I don't tend to leave much processing to the template which leaves out any advanced code.

10-30-2007, 06:04 PM
#5
alefort is offline alefort
alefort's Avatar
Status: Junior Member
Join date: Oct 2007
Location: Canada
Expertise:
Software:
 
Posts: 50
iTrader: 0 / 0%
 

alefort is on a distinguished road

Send a message via MSN to alefort

  Old

I have recently switched over from a Template System I built back in 2001 (eek), and am currently loving Smarty.

Treating Smarty as a bad idea because it is like a 'sub language' is quite definitely not a valid claim. You'll learn quickly that learning industry standards certainly pays off for spending a few extra hours learning them. As for Smarty, it is generally accepted industry wide as a solid template system, and combining it with some of the off the shelf javascript libraries (yui, moo, dojo, etc...) makes it an incredible powerful tool for any website developer.

11-09-2007, 02:29 AM
#6
bluesaga is offline bluesaga
Status: Member
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 137
iTrader: 1 / 100%
 

bluesaga is on a distinguished road

  Old

Not my sort of thing generally, i tend to try and stay away from it.

11-09-2007, 02:58 AM
#7
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

Any reason?

11-09-2007, 11:14 PM
#8
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

In my opinion, and a lot of other coders' opinions, Smarty isn't worth the files it is written in. Reasons?
  1. Parsing slows down the system overall
  2. Smarty has created its own pointless language

What's wrong with this, anyone?

PHP Code:
<?php if($szFlag 6): ?>
    <!-- Admin link -->
<?php endif; ?>

11-09-2007, 11:24 PM
#9
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

Is that a statement against smarty or templating systems as a whole? Because if you have a better templating system, do share.

11-09-2007, 11:56 PM
#10
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

Against Smarty and any other template systems that use their own home-grown languages. Each to their own when it comes to a template system - I just use the PHP approach like I've shown above.

Closed Thread  
Page 1 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