On Thu, 2009-03-19 at 22:54 -0400, Bob McConnell wrote:
From: Robert Cummings
On Thu, 2009-03-19 at 12:14 -0400, Bob McConnell wrote:
From: Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com
wrote:
From: Virgilio Quilario
Most discussion clipped for
From: Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can
understand
how to use it?
I have also looked at the Smarty site
Hi Virgil,
After your last post here, I looked at your site, then the Smarty site.
That was what triggered this question. Templates are a black art to me.
I don't even know where to begin to understand them. Every reference I
have looked at so far assumes that I already understand the MVC
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
templates.
Where can I find guidance or tutorials on how to do all of
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
templates.
Where can I find guidance or
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant
McConnell [mailto:r...@cbord.com]
Sent: Thursday, March 19, 2009 11:06 AM
To: Virgilio Quilario
Cc: php-general@lists.php.net
Subject: RE: [PHP] Smarty Tips and Techniques
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also
From: Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can
understand
how to use it?
I have also looked at the Smarty site
From: Shawn McKenzie
Bob McConnell wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can
understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
Bob McConnell wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
templates.
Where can I
On Thu, 2009-03-19 at 12:14 -0400, Bob McConnell wrote:
From: Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can
understand
how to use it?
I
On Thu, Mar 19, 2009 at 12:36 PM, Bob McConnell r...@cbord.com wrote:
From: Shawn McKenzie
Bob McConnell wrote:
From: Virgilio Quilario
That looks nice, but how do I get to the point where I can
understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/,
From: Bastien Koert
Just 162 files? I don't mean to sound condescending but if the code
is that much trouble, chuck it out and start over.
Not going to happen. There are too many other tasks in the backlog that
are more important and will bring in real money as opposed to just
making the
Marc Christopher Hall wrote:
The following comment is not intended to be helpful
*smacks head on desk repeatedly...*
This comment is..
I would hazard to say that if you are unwilling or unable to grasp OOP, MVCs
and any decent framework that is necessary then maybe stepping back and
On Thu, 2009-03-19 at 16:27 -0700, Michael A. Peters wrote:
Marc Christopher Hall wrote:
The following comment is not intended to be helpful
*smacks head on desk repeatedly...*
This comment is..
I would hazard to say that if you are unwilling or unable to grasp OOP, MVCs
Robert Cummings wrote:
On Thu, 2009-03-19 at 16:27 -0700, Michael A. Peters wrote:
Marc Christopher Hall wrote:
The following comment is not intended to be helpful
*smacks head on desk repeatedly...*
This comment is..
I would hazard to say that if you are unwilling or unable to grasp
On Thu, 2009-03-19 at 18:05 -0700, Michael A. Peters wrote:
Robert Cummings wrote:
On Thu, 2009-03-19 at 16:27 -0700, Michael A. Peters wrote:
Marc Christopher Hall wrote:
The following comment is not intended to be helpful
*smacks head on desk repeatedly...*
This comment is..
Robert Cummings wrote:
On Thu, 2009-03-19 at 18:05 -0700, Michael A. Peters wrote:
Robert Cummings wrote:
On Thu, 2009-03-19 at 16:27 -0700, Michael A. Peters wrote:
Marc Christopher Hall wrote:
The following comment is not intended to be helpful
*smacks head on desk repeatedly...*
From: Robert Cummings
On Thu, 2009-03-19 at 12:14 -0400, Bob McConnell wrote:
From: Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, Bob McConnell r...@cbord.com
wrote:
From: Virgilio Quilario
Most discussion clipped for brevity
// OOP
class DbFireman extends DbPerson
{
Bob McConnell wrote:
But defining objects and then figuring out how to create and use them
completely escapes me. My mind simply won't map a problem into objects,
it only sees procedures. Even when I look at classes, they resolve only
as loose groupings of functions and variables, not as
Bob McConnell wrote:
[SNIPPED]
the fireman. Going futher, using OOP let's you do all sorts of generic
Hi Rob,
Unfortunately, you still don't understand the problem I have. While it
takes a while to puzzle out the details, I don't have any trouble
reading, understanding or debugging
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
templates.
Where can I find guidance or tutorials on how to do all of this,
That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site http://www.smarty.net/, but
their documents assume significant experience in building and using
templates.
Where can I find guidance or tutorials on how to do all of
Shahrzad wrote:
IRIran.netHi,
I want to replace a php variable with a javascript variable inside script
type=text/javascript tag in a TPL file(smarty) , how can I do that?
//what in my mind is , but this code is wrong
///
var Country =
Man-wai Chang wrote:
Is there a template that presents a parent-child
forms, for example, an invoice object which has a header(invoice no,
date, customer code, invoice total) and multiple items (item no, item
name, quantity, price, amount)?
Go to
On Tue, 27 Mar 2007, Mario Guenterberg wrote:
Hi...
I try to connect in the last hours and the results are timeouts.
Excelent connection here.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
-
Lic. MartÃn
How about sending this to the Smarty list?
http://smarty.php.net/resources.php?category=7
Edward
-Original Message-
From: John.H [mailto:[EMAIL PROTECTED]
Sent: 23 November 2006 11:55
To: php-general
Subject: [PHP] [Smarty]How smarty name its combiled file?
It just like
Dear all,
I solved the problem using {literal}{/literal} tag. Thanks every one, who
gives me tips to solve the error.
--Nirmalya
Nirmalya Lahiri [EMAIL PROTECTED] wrote: Dear all,
I wrote this script using Smarty template,which gives a syntax error ..
syntax error: unrecognized
Nirmalya Lahiri wrote:
Dear all,
I wrote this script using Smarty template,which gives a syntax error ..
syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 436)
I wrote a javascript block in template file,where I use '{'. This '{' acctually shows the problem. How can
starting a new topic by replying to an existing thread is
bad form - we know how much work it is to click on the 'new mail'
button and fill in an address but please make the effort (it's in your
interest as well!).
with regard to Smarty why not try searching for existing writing on the subject?
* Amanda Hemmerich [EMAIL PROTECTED]:
I'm using PHP and Smarty to try to build an array of arrays using the
results from nested queries. I am just learning about nested arrays,
and I'm not sure what I'm doing wrong.
I am hoping someone can give me a hint as to what I am doing wrong. I
Warning: Smarty error: unable to read resource: welcome/Object.tpl in
/usr/local/lib/php/Smarty/Smarty.class.php on line 1088
You should check your Smarty`s template_dir. Put the templates into the
template_dir, then the Smarty will find them.
Like this:
$smarty = new Smarty();
I'd recommand you to use the HTML_TEMPLATE_IT. It's a PEAR class for
templating; I've personaly worked on it for building skinnable applications
in which users and admins can change the look of the pages. Bottom line,
it's a PEAR library/extension so no hastle since most of the hosts include
I was wondering if its a good idea to template via smarty and include smarty
with my code?
also instructions to setup smarty when setting up the application i made?
Good idea compared to what? Compared to a different templating
library, compared to writing your own templating library, or
Hey,
I was wondering if its a good idea to template via smarty and include
smarty
with my code?
also instructions to setup smarty when setting up the application i
made?
Good idea compared to what? Compared to a different templating
library, compared to writing your own templating
Yep, left myself quite open there...should have been more specific.
I will not write a templating library myself because there are so many
out there,
it would be a learning experience of course but other than that I think it
would be
rarely needed.
I meant bundling it along with the
On Tuesday 03 August 2004 15:21, Amanda Hemmerich offered up the following
tid-bit of information :
Ok, I am starting a new job and learning a new person's code, and trying
to learn Smarty at the same time.
This question is so basic, but I have no idea where to look for an
answer.
ANyway,
On Tue, 3 Aug 2004 14:21:45 -0500 (EST), Amanda Hemmerich
[EMAIL PROTECTED] wrote:
Ok, I am starting a new job and learning a new person's code, and trying
to learn Smarty at the same time.
This question is so basic, but I have no idea where to look for an answer.
ANyway, I need to change
Amanda Hemmerich wrote:
ANyway, I need to change the code so that, when there are no row returned
by the database, a message is displayed saying, There are no events
scheduled. or what have you.
[snip]
(in the PHP page)
$events = $db-getAll($sql_events, DB_FETCHMODE_ASSOC);
pete M said:
what about the modifiers
long list of modifiers snipped
How would you code that lot and remember its ALL to do with presentation ?
I mentioned this. Take another look at my post:
http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2
[By using only PHP], At worst [I lose]
Vicente Werner said:
http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2
Ugh that's not just fuckingly ugly, but a total doom to maintain over the
time -two months without touching the code and you're absolutely lost- .
It maybe faster, it maybe a bit simpler since you only have
Kelly Hallman said:
I don't recall anyone ever advancing the notion that Smarty turned PHP
into something more than it was before. By definition it is merely a layer
that makes your life as a developer easier. A tool!
Yeah but in my ignorance that's what I thought, and I realized I probably
pete M said:
Think everyone is missing the point..
the whole point of smarty is to take the presentation code away from the
logic
No, I understood that point. It's why I started using Smarty. Take
another look at what I said:
http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2
Richard Davey said:
CdV I don't understand... how is this:
[snip]
CdV Better than this?
CdV =
CdV $result = mysql_query (SELECT * FROM users WHERE id =
'.$_GET[id].');
CdV $row_array = mysql_fetch_array ($result);
CdV $name= $row_array[name];
CdV $address =
* Chris de Vidal [EMAIL PROTECTED] [2004-04-14 10:30:53 -0400]:
snip
So there are alternatives to what Smarty offers, but I also said I just
see them [template engines] as another tool. It's a tool; use it where
I can't agree here.
Template engines (in the sense we're talking here - for
* Chris de Vidal [EMAIL PROTECTED] [2004-04-14 11:33:56 -0400]:
snip
Naww... I'd been using Smarty for several weeks now because I thought the
only alternative to spaghetti code was Smarty, but recently I realized
that it's not, and that simple example shows it. I didn't realize I had
mmm some points:
1st. Clarity. It's much more clear to me to take a look at a template and
identify a subsituing variable when it's marked as something different like:
{$var} than the uglyness of ?=$var ? -and if you follo the recommended way:
?php=$var ?
2nd. As other users pointed, error
Vicente Werner said:
mmm some points:
1st. Clarity. It's much more clear to me to take a look at a template and
identify a subsituing variable when it's marked as something different
like:
{$var} than the uglyness of ?=$var ? -and if you follo the recommended
way:
?php=$var ?
Tomay-toe,
:0
* ^Subject: Re: smarty
/dev/null
Curt
--
I used to think I was indecisive, but now I'm not so sure.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
:0
* ^Subject: Re: smarty
/dev/null
Curt
agreed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Justin Patrin wrote:
Jochem Maas wrote:
...
Smarty does force that at all; you have to make the distinction and
apply liberal self-restraint.
I meant 'does NOT force' - thinko!
...
PLEASE WORLD: GET BEHIND CSS, AND FREE CONTENT FROM STYLE ON THE CLIENT.
why because it allows the structrully
Jochem Maas wrote:
Chris de Vidal wrote:
Jochem Maas said:
1. 'Template Engine' - you can justifyably call PHP a template engine
Correct. Seems that Smarty is, for the most part, redundant (see my last
post called PHP makes a great templating engine (Was: smarty)).
I was not intending to
Does anyone have a 'good' tutorial about Smarty. The one available on smarty.php.net
is really basic...
Vincent
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: jeudi 8 avril 2004 4:02
To: Kelly Hallman
Cc: PHP-General
Subject: Re: [PHP] smarty
On Wed, 2004
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: jeudi 8 avril 2004 4:02
To: Kelly Hallman
Cc: PHP-General
Subject: Re: [PHP] smarty
On Wed, 2004-04-07 at 21:35, Kelly Hallman wrote:
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great
-Original Message-
From: Kelly Hallman [mailto:[EMAIL PROTECTED]
Sent: April 7, 2004 11:51 PM
To: John W. Holmes
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] smarty
Apr 7 at 10:22pm, John W. Holmes wrote:
Uhhh, yeah--that's not templating, that's called spaghetti code
Apr 8 at 7:38am, Aaron Wolski wrote:
I don't think this thread is tired. As someone who is about to dive into
learning templating more than what I do now...
Tired in the sense that it had degenerated to a personal level that was
uncalled for and off-topic. The merits of templating are never
From: Kelly Hallman [EMAIL PROTECTED]
Sure, they could. However, take a look at all the newbie questions on this
list. Maybe you've got time for all that hand holding.. but Smarty is a
lot closer to HTML, which many of them already know.
{$variable} is no more closer to HTML than
John W. Holmes wrote:
From: Kelly Hallman [EMAIL PROTECTED]
Sure, they could. However, take a look at all the newbie questions on this
list. Maybe you've got time for all that hand holding.. but Smarty is a
lot closer to HTML, which many of them already know.
{$variable} is no more closer to
From: John W. Holmes
Smarty has two benefits to using a PHP templating solution (imo)
1. Smarty forces you to keep the presentation layer separate from your
code/business layer.
2. Caching
IMHO, a critical reason for choosing a template language over PHP is
security. Do you really want to
From: Hundiak, Arthur [EMAIL PROTECTED]
From: John W. Holmes
Smarty has two benefits to using a PHP templating solution (imo)
1. Smarty forces you to keep the presentation layer separate from your
code/business layer.
2. Caching
IMHO, a critical reason for choosing a template language
On Thu, 2004-04-08 at 10:45, John W. Holmes wrote:
[--SNIP--]
Any templating engine,
that's not PHP itself, is going to restrict what the designer can do to some
extent.
This is a pretty broad statement and is not true in general despite it's
applicability in many cases.
Cheers,
Rob.
--
From: Robert Cummings [EMAIL PROTECTED]
On Thu, 2004-04-08 at 10:45, John W. Holmes wrote:
Any templating engine,
that's not PHP itself, is going to restrict what the designer can do to
some
extent.
This is a pretty broad statement and is not true in general despite it's
applicability
John W. Holmes wrote:
From: Robert Cummings [EMAIL PROTECTED]
On Thu, 2004-04-08 at 10:45, John W. Holmes wrote:
Any templating engine,
that's not PHP itself, is going to restrict what the designer can do to
some
extent.
This is a pretty broad statement and is not true in general despite it's
On Thu, 2004-04-08 at 10:59, John W. Holmes wrote:
From: Robert Cummings [EMAIL PROTECTED]
On Thu, 2004-04-08 at 10:45, John W. Holmes wrote:
Any templating engine,
that's not PHP itself, is going to restrict what the designer can do to
some
extent.
This is a pretty broad
Robert Cummings wrote:
Yeah, yeah... fine. I'm sure InterJinn doesn't limit you in any way, right?
;)
It will save you money on your car insurance. ;)
And people wonder why I feel the need once in while to give you a good
kick in the teeth for being a hypocrite and idiot. This is completely
On Thu, 2004-04-08 at 11:45, John Nichel wrote:
Robert Cummings wrote:
Yeah, yeah... fine. I'm sure InterJinn doesn't limit you in any way, right?
;)
It will save you money on your car insurance. ;)
And people wonder why I feel the need once in while to give you a good
kick in the
I have been following this thread closely and thought I'd summarize a
few points:
1. 'Template Engine' - you can justifyably call PHP a template engine,
but I think calling Smarty a template engine confuses the issue - it
would be clearer call it something like 'Presentation Component' which
Can anyone direct me to a good resource for learning to use PHP as a
templating language along with plenty of examples? I prefer books, but
web is fine, too.
Thanks so much!
Amanda
On Thu, 8 Apr 2004, Justin French wrote:
On 07/04/2004, at 1:33 AM, Angelo Zanetti wrote:
hi all has anyone
Jochem Maas said:
1. 'Template Engine' - you can justifyably call PHP a template engine
Correct. Seems that Smarty is, for the most part, redundant (see my last
post called PHP makes a great templating engine (Was: smarty)).
but I think calling Smarty a template engine confuses the issue - it
You need people like me so you can point your fingers and say hey theres the bad
guy! So what does that make you? Good guys? Don't kid yourselves. You're no better
than me. You just know how to hide -- and how to lie. Me I don't have that problem..Me
I always tell the truth--even when I lie.
Antonio M mailto:[EMAIL PROTECTED]
on Thursday, April 08, 2004 12:57 PM said:
You need people like me so you can point your fingers and say hey
theres the bad guy! So what does that make you? Good guys? Don't kid
yourselves. You're no better than me. You just know how to hide --
and how
Robert Cummings wrote:
On Wed, 2004-04-07 at 21:35, Kelly Hallman wrote:
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great templating language :)
h1?=$title?/h1
table
? foreach($staff as $person): ?tr
td?=$person['firstname']? ?=$person['surname']?/td
td?=$person['role']?/td
Antonio M wrote:
So say good night to the bad guy...cause it's the last time youre gonna see a bad guy like me.
Good night. You're drank too much tonight, anyhow.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals
Who the fuck you tink you're talkin' to, huh! Whatta you think I am? Your fuckin'
slave! You dont tell me what to do, Sosa. Youre shit! You want a war, you got it. I'll
take you to war!
http://www.youdontknowwhoiam.org/lol.html
John W. Holmes [EMAIL PROTECTED] wrote:
Antonio M wrote:
So
Chris de Vidal wrote:
Jochem Maas said:
1. 'Template Engine' - you can justifyably call PHP a template engine
Correct. Seems that Smarty is, for the most part, redundant (see my last
post called PHP makes a great templating engine (Was: smarty)).
I was not intending to pronounce Smarty
From: Antonio Montana [mailto:[EMAIL PROTECTED]
Subject: Re: [PHP] smarty
Who the fuck you tink you're talkin' to, huh!
Tink? DRINKS ARE ON THE HOUSE!!
LOL
You dont tell me what to do, Sosa.
Sammy Sosa?
You want a war, you got it.
Untraceable IP address - $145.00
Unbreakable Firewall
* Thus wrote Richard Davey ([EMAIL PROTECTED]):
Hello Antonio,
Friday, April 9, 2004, 12:21:15 AM, you wrote:
AM Who the you tink you're talkin' to, huh! Whatta you
(etc)
Dear God, who unlocked the monkey cage?
Monkey's can type better than that.
Curt
--
I used to think I was
snip
Who the fuck you tink you're talkin' to, huh! Whatta you think I am?
Your fuckin' slave! You dont tell me what to do, Sosa. Youre shit! You
want a war, you got it. I'll take you to war!
/snip
Shame on you for misquoting Scarface.
G'nite, Tony. Next time you're going to quote a classic
I use Smarty for most of my commericial and non commercial websites, it
makes it very easy to share and re-use code because the appliciation logic
is separate from the presentation logic.
It also makes it possible to encode the scripts using Zend Encoder, Turck
MMCache or similar projects which
Kelly Hallman said:
Going even one step further (the beauty of Smarty: always another level),
just extend the Smarty object itself. Then, instead of making all your
templates includes other templates (such as a header or a footer), you can
make your overall page be a template, and the extended
From: Chris de Vidal [EMAIL PROTECTED]
Kelly Hallman said:
Going even one step further (the beauty of Smarty: always another
level),
just extend the Smarty object itself. Then, instead of making all your
templates includes other templates (such as a header or a footer), you
can
make your
John W. Holmes said:
From: Chris de Vidal [EMAIL PROTECTED]
Kelly Hallman said:
Going even one step further (the beauty of Smarty: always another
level),
just extend the Smarty object itself. Then, instead of making all your
templates includes other templates (such as a header or a
Chris W. Parker wrote:
Chris de Vidal mailto:[EMAIL PROTECTED]
on Tuesday, April 06, 2004 11:43 AM said:
I could have put a tag in the template like {bio} but that'd mean
maintaining HTML in the PHP code which I wanted to avoid (left the
prettyness to the Front Page developer). Instead, I
From: Chris de Vidal [EMAIL PROTECTED]
Or are you saying:
$pt = new MyPage;
$pt-render('contact.tpl');
OR
$pt = new MyPage;
$pt -render('prices.tpl');
OR
$pt = new MyPage;
$pt-render('index.tpl');
I can see the benefit of this method if that's what you mean.
That's what I meant. :) I
On 07/04/2004, at 1:33 AM, Angelo Zanetti wrote:
hi all has anyone used smarty before? what do you think of it? I think
it's
pretty nice to seperate your script (code) from your design.
i would like to hear your comments and if you have any alternatives
let me
know.
PHP itself is a great
to outlive them.
Jason
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 6:26 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] smarty
On 07/04/2004, at 1:33 AM, Angelo Zanetti wrote:
hi all has anyone used smarty before? what do
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great templating language :)
h1?=$title?/h1
table
? foreach($staff as $person): ?tr
td?=$person['firstname']? ?=$person['surname']?/td
td?=$person['role']?/td
td?=$person['phone']?/td
tda
On Wed, 2004-04-07 at 21:35, Kelly Hallman wrote:
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great templating language :)
h1?=$title?/h1
table
? foreach($staff as $person): ?tr
td?=$person['firstname']? ?=$person['surname']?/td
td?=$person['role']?/td
Kelly Hallman wrote:
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great templating language :)
h1?=$title?/h1
table
? foreach($staff as $person): ?tr
td?=$person['firstname']? ?=$person['surname']?/td
td?=$person['role']?/td
td?=$person['phone']?/td
tda
Apr 7 at 10:01pm, Robert Cummings wrote:
Smarty is a bit of a hack too... why do I need to declare my templates
within the PHP code? If I'm an HTML designer I'd like to create a new
page, include templates, use some data that's been made available and
have it all in the template. I sure as
On 08/04/2004, at 11:35 AM, Kelly Hallman wrote:
Apr 8 at 10:26am, Justin French wrote:
PHP itself is a great templating language :)
h1?=$title?/h1
table
? foreach($staff as $person): ?tr
td?=$person['firstname']? ?=$person['surname']?/td
td?=$person['role']?/td
td?=$person['phone']?/td
tda
Apr 7 at 10:22pm, John W. Holmes wrote:
Uhhh, yeah--that's not templating, that's called spaghetti code :)
+1 - Use of buzzword
Right about here I could sense where this was going I don't know, what
would you call it? Is there a non-buzzword term you'd be happier with?
That term
to the other side until a business
need arises that forces it.
Jason
A really good example woul
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 9:02 PM
To: Kelly Hallman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] smarty
On 08/04/2004, at 11:35
Apr 6 at 5:33pm, Angelo Zanetti wrote:
hi all has anyone used smarty before? what do you think of it? I think
it's pretty nice to seperate your script (code) from your design.
i would like to hear your comments and if you have any alternatives
There are a lot of templating systems for PHP, but
Tuesday, April 6, 2004, 5:33:03 PM, you wrote:
hi all has anyone used smarty before? what do you think of it? I think it's
pretty nice to seperate your script (code) from your design.
i would like to hear your comments and if you have any alternatives let me
know.
Hi,
I've used it on a few
Kelly Hallman said:
Apr 6 at 5:33pm, Angelo Zanetti wrote:
hi all has anyone used smarty before? what do you think of it? I think
it's pretty nice to seperate your script (code) from your design.
i would like to hear your comments and if you have any alternatives
There are a lot of
Chris de Vidal mailto:[EMAIL PROTECTED]
on Tuesday, April 06, 2004 11:43 AM said:
I could have put a tag in the template like {bio} but that'd mean
maintaining HTML in the PHP code which I wanted to avoid (left the
prettyness to the Front Page developer). Instead, I put something
like
From: Chris de Vidal [EMAIL PROTECTED]
I could have put a tag in the template like {bio} but that'd mean
maintaining HTML in the PHP code which I wanted to avoid (left the
prettyness to the Front Page developer). Instead, I put something like
this in the template:
{if $level 2}
{bio}
Apr 6 at 2:43pm, Chris de Vidal wrote:
Given that scripts are compiled the first time they're ran, you'll
never* notice the bloat and never lack performance; it's the same as
real PHP code and can be optimized with a caching engine like Zend.
Certainly. However, the Smarty compiler is about
Kelly Hallman said:
Apr 6 at 2:43pm, Chris de Vidal wrote:
Given that scripts are compiled the first time they're ran, you'll
never* notice the bloat and never lack performance; it's the same as
real PHP code and can be optimized with a caching engine like Zend.
Certainly. However, the
1 - 100 of 117 matches
Mail list logo