Solved

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

Posted on 2007-11-14
5
359 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:
baev 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now