Solved

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

Posted on 2007-11-14
5
363 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
[X]
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
5 Comments
 
LVL 7

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

635 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