/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] what is smarty

Hi all,

I have questions in mind about smarty.

Can you plz tell me what the smarty does regarding design and what relation it has with PHP.

Is it class based structure?I need to know the basic knowledge of smarty.

If you have any good web based tutorials with beginner’s example given then can you plz send me the link.

Thanks in advance.

Regards,
Raj

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@felgallDec 17.2007 — smarty separates out the page templates from the PHP code so that the processing and the page layout are separated. It makes changing the page content without changing the processing or changing the processing without changing the page content much easier because they are in separate files. The bigger the project the more necessary it becomes to separate out the various layers of your site's construction. It is like placing yout HTML, stylesheet, and JavaScript in separate files for the client side layers of the project.
Copy linkTweet thisAlerts:
@raj_2006authorDec 17.2007 — Hi

Thank you very much for the definition.I have understood that smarty is such a file management system where I can keep the html designs separate from php code.

Can I get a small example please.I need a place from where I can start.

Regards,

Raj
Copy linkTweet thisAlerts:
@TheRaveDec 18.2007 — The smarty website has some explanations and tutorials:

http://smarty.php.net/crashcourse.php
Copy linkTweet thisAlerts:
@raj_2006authorDec 18.2007 — Hi

Thank you very much for the link.Yes I was looking something like this..Its great

Thanks again

Regards,

Raj
×

Success!

Help @raj_2006 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...