I have been reading this thread with interest ... and amusement.
FWII for my web sites I have
1) Most PHP code in files outside of the document root
2) Site specific variables (constants, really) in an include.php file
3) All HTML is also in this include file and is the content a variable.
4) Ne
On Friday 06 February 2009 19:12:08 Frank Stanovcak wrote:
> I'm in the process of seperating logic from display in a section of code,
> and wanted to make sure I wasn't treading on a performance landmine here,
> so I ask you wizened masters of the dark arts this...
>
> is there a serious performan
On Fri, 2009-02-06 at 17:32 +, Stuart wrote:
> They're called short tags, not fast tags. There is nothing faster
> about them beyond the typing effort required.
Mostly true.
However, the only thing that does is an "echo/print", so aside
from saving you all the time, you can't do
Person
"Stuart" wrote in message
news:a5f019de0902060932k1ccf2948ua42f3cfa33694...@mail.gmail.com...
> 2009/2/6 Frank Stanovcak :
>>
>> "Richard Heyes" wrote in message
>> news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com...
Wouldn't have thought so. But for readability, you may fin
On Fri, Feb 06, 2009 at 01:09:13PM -0500, Eric Butera wrote:
> On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo wrote:
> > In my opinion, you would achieve better results using a template
> > engine, like Smarty (http://www.smarty.net/). In addition, your code
> > would be entirely separated from p
On Fri, Feb 6, 2009 at 2:10 PM, Bruno Fajardo wrote:
> I am so stick to Smarty that I never tried other solutions, like
> Savant. Thanks for the tip, I'll try it right away.
>
> Cheers.
>
> 2009/2/6 Eric Butera :
>> On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote:
>>> Well, Smarty's caching l
I am so stick to Smarty that I never tried other solutions, like
Savant. Thanks for the tip, I'll try it right away.
Cheers.
2009/2/6 Eric Butera :
> On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote:
>> Well, Smarty's caching layer is very fast. Maybe not as fast as an
>> echo statement, but
On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote:
> Well, Smarty's caching layer is very fast. Maybe not as fast as an
> echo statement, but apparentely Frank was also interested in separate
> logic from presentation, and a series of echo's is not the best
> solution in my opinion. :-)
> But th
Well, Smarty's caching layer is very fast. Maybe not as fast as an
echo statement, but apparentely Frank was also interested in separate
logic from presentation, and a series of echo's is not the best
solution in my opinion. :-)
But the best solution depends of the context of the application, i agr
On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo wrote:
> In my opinion, you would achieve better results using a template
> engine, like Smarty (http://www.smarty.net/). In addition, your code
> would be entirely separated from presentation in a elegant way.
>
> 2009/2/6 Frank Stanovcak :
>> I'm in
2009/2/6 Frank Stanovcak :
>
> "Richard Heyes" wrote in message
> news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com...
>>> Wouldn't have thought so. But for readability, you may find this a
>>> little easier instead:
>>
>> Slight correction:
>>
>> ?>
>> blah
>> >
>> --
>> Richar
"Bruno Fajardo" wrote in message
news:eeb6980b0902060915k2b34ec31nc6ad166e2c544...@mail.gmail.com...
In my opinion, you would achieve better results using a template
engine, like Smarty (http://www.smarty.net/). In addition, your code
would be entirely separated from presentation in a elegant wa
"Richard Heyes" wrote in message
news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com...
>> Wouldn't have thought so. But for readability, you may find this a
>> little easier instead:
>
> Slight correction:
>
> ?>
> blah
>
> --
> Richard Heyes
>
> HTML5 Canvas graphing for Fir
> Wouldn't have thought so. But for readability, you may find this a
> little easier instead:
Slight correction:
?>
blah
http://www.rgraph.org (Updated January 31st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In my opinion, you would achieve better results using a template
engine, like Smarty (http://www.smarty.net/). In addition, your code
would be entirely separated from presentation in a elegant way.
2009/2/6 Frank Stanovcak :
> I'm in the process of seperating logic from display in a section of cod
> ...
Wouldn't have thought so. But for readability, you may find this a
little easier instead:
?>
{$var1} Blah {$var2}
...
http://www.rgraph.org (Updated January 31st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
16 matches
Mail list logo