Article View: pl.comp.programming
Article #205441Re: jsp vs php
From: Ghost
Date: Tue, 30 Apr 2013 16:56
Date: Tue, 30 Apr 2013 16:56
41 lines
2355 bytes
2355 bytes
Użytkownik "R.e.m.e.K" <go@dev.null> napisał w wiadomości
news:517fdd83$0$26694$65785112@news.neostrada.pl...
> 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:
Ryli?
> <html>
> <head>
> <title>Info</title>
> </head>
> <body>
> <pre>
> User Information:
>
> Name: {$name}
> Address: {$address}
> </pre>
> </body>
> </html>
Ta, {$name} plus overhead na oprogramowanie przypisania dla smartow jest
tysiac razy lepsze od <? echo $name?>, nigga, please.
Technical Details
Message-ID:
<517ff7c4$0$1232$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.bbs-scene.org!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<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> <517fdd83$0$26694$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!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.bbs-scene.org!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail From: "Ghost" <ghost@everywhere.pl> Newsgroups: pl.comp.programming 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> <517fdd83$0$26694$65785112@news.neostrada.pl> Subject: Re: jsp vs php Date: Tue, 30 Apr 2013 18:56:29 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Lines: 44 Message-ID: <517ff7c4$0$1232$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 80.55.157.1 X-Trace: 1367340996 unt-rea-b-01.news.neostrada.pl 1232 80.55.157.1:1673 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit