๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.programming
Article #205440

Re: jsp vs php

#205440
From: R.e.m.e.K
Date: Tue, 30 Apr 2013 15:04
37 lines
1939 bytes
Dnia Tue, 30 Apr 2013 15:58:29 +0200, Ghost napisaล‚(a):

>>> Smarty nadal nie pozwalaja uniknac mieszania, po prostu mieszasz inne
>>> zapisy, ale nadal. To byla slepa uliczka.
>>
>> Jak to mieszam zapisy??
>>
>> Przyklad:
>>
>> $smarty = new Smarty;
>> $smarty->assign('name', 'george smith');
>> $smarty->assign('address', '45th & Harris');
>> $smarty->display('index.tpl');
>>
>> Gdzie tu mieszanie HTMLa i PHP?
> 
> A teraz przyjrzyj sie jak wyglada HTML.

Wyglada dobrze i czysto:

<html>
<head>
<title>Info</title>
</head>
<body>
<pre>
User Information:

Name: {$name}
Address: {$address}
</pre>
</body>
</html>

-- 
pozdro
R.e.m.e.K
Technical Details
Message-ID: <517fdd83$0$26694$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!us.feeder.erje.net!feed.news.qwest.net!mpls-nntp-01.inet.qwest.net!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <cfa1e1b8-b40c-45e1-a091-7e7a1f53c751@googlegroups.com> <slrnkns9ih.jsn.dozzie@jarowit.net> <517e8f58$0$26681$65785112@news.neostrada.pl> <517ed8a7$0$1220$65785112@news.neostrada.pl> <517f8523$0$1210$65785112@news.neostrada.pl> <517fbf12$0$1252$65785112@news.neostrada.pl> <517fce0c$0$1270$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!us.feeder.erje.net!feed.news.qwest.net!mpls-nntp-01.inet.qwest.net!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "R.e.m.e.K" <go@dev.null>
Subject: Re: jsp vs php
Newsgroups: pl.comp.programming
User-Agent: 40tude_Dialog/2.0.15.1pl
MIME-Version: 1.0
Sender: hell@heaven
References: <cfa1e1b8-b40c-45e1-a091-7e7a1f53c751@googlegroups.com> <slrnkns9ih.jsn.dozzie@jarowit.net> <517e8f58$0$26681$65785112@news.neostrada.pl> <517ed8a7$0$1220$65785112@news.neostrada.pl> <517f8523$0$1210$65785112@news.neostrada.pl> <517fbf12$0$1252$65785112@news.neostrada.pl> <517fce0c$0$1270$65785112@news.neostrada.pl>
Date: Tue, 30 Apr 2013 17:04:35 +0200
Lines: 37
Message-ID: <517fdd83$0$26694$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 89-71-60-255.dynamic.chello.pl
X-Trace: 1367334275 unt-rea-a-01.news.neostrada.pl 26694 89.71.60.255:54806
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit