Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

I'm thinking about switching from hard coding to Smarty.  What are the pros and cons?

Posted on 2007-11-14
5
360 Views
Last Modified: 2012-05-05
I'm thinking about switching from hard coding to Smarty.  What are the pros and cons?
0
Comment
Question by:smoothcat11
5 Comments
 
LVL 6

Accepted Solution

by:
Dmitrii earned 500 total points
ID: 20288224
Smarty is too large and actually it requires studying one more programming language.
The main pros are listed on the Smarty's site:
http://smarty.php.net/whyuse.php ,
 declaring that: "One of Smartys primary design goals is to facilitate the separation of application code from presentation."
But the fact is that the same goal can be reached without Smarty as the PHP itself can be used as templating language.
0
 
LVL 4

Expert Comment

by:rschoenbach
ID: 20291238
Before studying smarty I would look into a programming concept called MVC.

Basically it is a seperation between model, view and controller. Model = database,view = templates, controller = controls logic.

Its pretty simple to implement and has many pros with few cons and helps you learn more advanced php techniques.
0
 
LVL 25

Expert Comment

by:devic
ID: 20310616
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20591003
Forced accept.

Computer101
EE Admin
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question