Solved

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

Posted on 2007-11-14
5
358 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

760 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

23 Experts available now in Live!

Get 1:1 Help Now