Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-11-14
5
Medium Priority
?
368 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 7

Accepted Solution

by:
Dmitrii earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

916 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