RE: [PHP] Smarty Tips and Techniques

2009-03-20 Thread Robert Cummings
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

Re: [PHP] Smarty Tips and Techniques

2009-03-20 Thread Thodoris
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

Re: [PHP] Smarty Tips and Techniques

2009-03-20 Thread Virgilio Quilario
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread 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 tutorials on how to do all of

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bob McConnell
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread 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 http://www.smarty.net/, but their documents assume significant

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Marc Christopher Hall
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

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bob McConnell
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

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bob McConnell
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread 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 templates. Where can I

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread 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 That looks nice, but how do I get to the point where I can understand how to use it? I

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bastien Koert
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/,

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bob McConnell
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Michael A. Peters
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Robert Cummings
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Michael A. Peters
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Robert Cummings
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..

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Michael A. Peters
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...*

RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bob McConnell
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 {

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Michael A. Peters
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

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bipin Upadhyay
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

[PHP] Smarty Tips and Techniques

2009-03-18 Thread Virgilio Quilario
Hi list, Just wanna share my collection of Smarty scripting tips and techniques. Smarty is a template engine for PHP that you can use to separate data and logic from web design. This way programmers can work on the php scripts and designers can work on the templates for the same web site. Here

RE: [PHP] Smarty Tips and Techniques

2009-03-18 Thread Bob McConnell
-general@lists.php.net Subject: [PHP] Smarty Tips and Techniques Hi list, Just wanna share my collection of Smarty scripting tips and techniques. Smarty is a template engine for PHP that you can use to separate data and logic from web design. This way programmers can work on the php scripts

Re: [PHP] Smarty Tips and Techniques

2009-03-18 Thread Thodoris
To: php-general@lists.php.net Subject: [PHP] Smarty Tips and Techniques Hi list, Just wanna share my collection of Smarty scripting tips and techniques. Smarty is a template engine for PHP that you can use to separate data and logic from web design. This way programmers can work on the php scripts

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Phpster
Only allow a few markup tags, strip_tags() allows a limited lIst to be kept Bastien Sent from my iPod On Jan 13, 2009, at 11:18 PM, Daniel Kolbo kolb0...@umn.edu wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Daniel Kolbo
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13,

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 09:08 -1000, Daniel Kolbo wrote: Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Edmund Hertle
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13,

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread ceo
One way to balance the author's need to have nice-looking output, and your need to keep the content/html under control is to provide the authors with a variety of template layouts with varying number/placement/sizes of images and blocks of text. Build a half-dozen of them, allow only ASCII

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread VamVan
On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for several years now and I am happy with this division of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Nathan Rixham
VamVan wrote: On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for several years now and I am happy with this division of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Benjamin Hawkes-Lewis
On 14/1/09 07:56, Robert Cummings wrote: Strip all tags except bold and italics. Then replaceb withstrong andi withem since the former tags are deprecated. Actually, b and i have not been formally deprecated in any standard. The closest thing to a prohibition on these elements is WCAG

[PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Hello, I've been using PHP and Smarty for several years now and I am happy with this division of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That is, the text is data, so i am motivated to store the text in a

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Phpster
What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM,

Re: [PHP] Smarty Question

2007-10-01 Thread Stut
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 =

[PHP] Smarty template for parent-child form

2007-07-24 Thread Man-wai Chang
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)? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is

Re: [PHP] Smarty template for parent-child form

2007-07-24 Thread Chad Robinson
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

[PHP] Smarty Website down?

2007-03-27 Thread Mario Guenterberg
Hi... I try to connect in the last hours and the results are timeouts. Greetings Mario -- - | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60

Re: [PHP] Smarty Website down?

2007-03-27 Thread Martin Marques
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

[PHP] [Smarty]How smarty name its combiled file?

2006-11-23 Thread John . H
It just like %%58^588^588C8934%%second.html.php. How does this filename be created?

RE: [PHP] [Smarty]How smarty name its combiled file?

2006-11-23 Thread Edward Kay
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 %%58

[PHP] Smarty error

2006-05-05 Thread Nirmalya Lahiri
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 I solve this problem?

Re: [PHP] Smarty error

2006-05-05 Thread Nirmalya Lahiri
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

Re: [PHP] Smarty error

2006-05-05 Thread John Nichel
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

[PHP] Smarty Templates?

2006-02-08 Thread R. Van Tassel
I'm contemplating using Smarty Templates for a website and was wondering what opinions on them, pro or con, may be. Thanks in advance for all your help. -Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smarty Templates?

2006-02-08 Thread Jochem Maas
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?

Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-23 Thread robert mena
as a template and it seems to be related to a buffer somewhere: php/smarty or apache. I've used microtime and from the begin of the php script until after the smarty-display it takes from 0.05s (min) to 0.32s (max) Any tips of how can I figure out what is slowing down my site? tks

Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-23 Thread Sumeet
smarty as a template and it seems to be related to a buffer somewhere: php/smarty or apache. I've used microtime and from the begin of the php script until after the smarty-display it takes from 0.05s (min) to 0.32s (max) Any tips of how can I figure out what is slowing down my site? tks yes..use

Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-22 Thread David Tulloh
using smarty as a template and it seems to be related to a buffer somewhere: php/smarty or apache. I've used microtime and from the begin of the php script until after the smarty-display it takes from 0.05s (min) to 0.32s (max) Any tips of how can I figure out what is slowing down my site

RE: [PHP] PHP smarty - nested queries and arrays

2005-08-12 Thread Daevid Vincent
First I'll appologize for the cheuvanistic remark the other poster had. I know he had good intentions... So I don't know smarty, but it seems to me you're grabbing only one row here: $projects = $db-getAssoc() Normally in straight PHP, I would do something like. While ($row =

[PHP] PHP smarty - nested queries and arrays

2005-08-11 Thread Amanda Hemmerich
in /usr/local/lib/php/Smarty/Smarty.class.php on line 1088 PHP STUFF $query =SELECT * FROM projects WHERE parent_project_id is NULL OR parent_project_id = ''; $projects = $db-getAssoc($query, DB_FETCHMODE_ASSOC); foreach ($projects as $key = $project) { $query =SELECT * FROM projects WHERE

[PHP] Re: PHP smarty - nested queries and arrays

2005-08-11 Thread Matthew Weier O'Phinney
: unable to read resource: welcome/Object.tpl in /usr/local/lib/php/Smarty/Smarty.class.php on line 1088 Actually, this error indicates it either cannot find or open the template file. make sure you have a 'welcome' directory in your templates directory, and an Object.tpl file within

Re: [PHP] PHP smarty - nested queries and arrays

2005-08-11 Thread Jochem Maas
Amanda Hemmerich wrote: Hello! 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. ... Can anyone point me in the right direction? Amanda please don't

[PHP] Tip for 'New People'/Beginners/Noobs [was] Re: [PHP] PHP smarty - nested queries and arrays

2005-08-11 Thread Jochem Maas
Amanda Hemmerich wrote: What is cross posting? when you post the same question to more than one mailing list (especially when done at the same time). alot of the people who regularly read/post on php-generals also watch other php related mailing lists (I for one am also subscribed to the

[PHP] Re: PHP smarty - nested queries and arrays

2005-08-11 Thread mikespook
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(); $smarty

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-22 Thread M Saleh EG
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

[PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Ryan A
Hey, This may belong more on the smarty list, but I thought i'll ask it here because in another way I need your opinion more than smarty advise. Like a lot of people on this list, I use a templating system (Smarty and another... mostly Smarty) when I am working on a project for a client...

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Rory Browne
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

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Ryan A
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

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Rory Browne
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

[PHP] Smarty and PEAR DB

2005-04-11 Thread Reynier Perez Mira
Hello List: I'm using PEAR DB and Smarty. The case is that I have to pass a value from a query result to a Smarty var. I try to paginate results. See the code below:

[PHP] smarty and db

2004-08-03 Thread Amanda Hemmerich
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 the code so that, when there are no row returned by the database, a message is

Re: [PHP] smarty and db

2004-08-03 Thread John Nichel
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,

Re: [PHP] smarty and db

2004-08-03 Thread Justin Patrin
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

Re: [PHP] smarty and db

2004-08-03 Thread John Holmes
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);

AW: [PHP] smarty

2004-04-16 Thread Ben
peace of loss in performance. Nevertheless it might be a neverending discussion like windows vs *nix... -Ursprüngliche Nachricht- Von: Chris de Vidal [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 14. April 2004 17:34 An: Kelly Hallman Cc: [EMAIL PROTECTED] Betreff: Re: [PHP] smarty

Re: AW: [PHP] smarty

2004-04-16 Thread Chris de Vidal
Ben said: But i don't see an alternative in your Example 3. Here was example 3 from my post: http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2 $result = mysql_query (SELECT * FROM users WHERE id = '.$_GET[id].'); $row_array = mysql_fetch_array ($result); $name=

Re: AW: [PHP] smarty

2004-04-16 Thread pete M
I don't see why you keep persisting this thread. Smarty is a cool tool and lots of people use it. You have decided NOT to use it. So why keep going on; you not like Smarty; are you encouraging users not to use Smarty. I don't see your point at all !!! There's more than one way of skinning a

Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
pete M wrote: There's more than one way of skinning a cat ! Hydrochloric acid works real well. ;) -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _

Re: AW: [PHP] smarty

2004-04-16 Thread Chris de Vidal
pete M said: Smarty is a cool tool and lots of people use it. You have decided NOT to use it. I don't believe you've read a word I've written. I've been trying to tell people like myself that one can easily template with PHP. I thought I *needed* Smarty or any nice templating engine to

Re: AW: [PHP] smarty

2004-04-16 Thread Richard Harb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Could we please close the thread already? I think in the previous week there's been everything said what there's been to say. whoever is still interested in reading the same arguments over and over should please take a look at the archives. I value

Re: AW: [PHP] smarty

2004-04-16 Thread Enrico Weigelt
BIG_SNIP / It seems the discussions wents in a completely nonsense direction. Arguing about TE's in general and one concerete TE named smarty is simply silly. Either we'd talk about the (dis)advantages of TE's in general or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. So

RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
Enrico Weigelt mailto:[EMAIL PROTECTED] on Friday, April 16, 2004 10:13 AM said: keep in mind it's friday!! Either we'd talk about the (dis)advantages of TE's in general or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. don't forget interjinn. So lets split the thread

Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
Chris W. Parker wrote: Enrico Weigelt mailto:[EMAIL PROTECTED] on Friday, April 16, 2004 10:13 AM said: keep in mind it's friday!! Then why am I still sober? Either we'd talk about the (dis)advantages of TE's in general or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. don't

Re: AW: [PHP] smarty

2004-04-16 Thread Robert Cummings
On Fri, 2004-04-16 at 13:27, John Nichel wrote: Chris W. Parker wrote: Enrico Weigelt mailto:[EMAIL PROTECTED] on Friday, April 16, 2004 10:13 AM said: keep in mind it's friday!! Then why am I still sober? Either we'd talk about the (dis)advantages of TE's in general or

RE: AW: [PHP] smarty

2004-04-16 Thread Aaron Wolski
don't forget interjinn. Like we ever could. (awaits the flame) John WHY ARE YOU SUCH A F... Ok, I'm willing to let bad blood go away if you are. We're all PHP peeps here so really there shouldn't be any animosity (perceived or otherwise). Damn. Some of the best entertainment of my

Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
Aaron Wolski wrote: don't forget interjinn. Like we ever could. (awaits the flame) John WHY ARE YOU SUCH A F... Ok, I'm willing to let bad blood go away if you are. We're all PHP peeps here so really there shouldn't be any animosity (perceived or otherwise). Damn. Some of the best

Re: AW: [PHP] smarty

2004-04-16 Thread John W. Holmes
Either we'd talk about the (dis)advantages of TE's in general or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. Wait a minute... are we talking about Smarty as in smarty.php.net? Because I was thinking of something else this entire time and this completely changes the

Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
John W. Holmes wrote: Either we'd talk about the (dis)advantages of TE's in general or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. Wait a minute... are we talking about Smarty as in smarty.php.net? Because I was thinking of something else this entire time and this completely

RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Friday, April 16, 2004 11:24 AM said: serious You do realize that with 2.5 hours left in the work day today, we're likely to get even sillier? ;) /serious I still have 6 hours to go. :( c. p.s. anyone play ffxi? -- PHP General Mailing List

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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]

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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

Re[2]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello Chris, Wednesday, April 14, 2004, 3:35:05 PM, you wrote: 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=

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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 =

Re: Re[2]: [PHP] smarty

2004-04-14 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] Because you're injecting variables directly into your HTML, which some of the time might be ok - but what if the $row_array doesn't contain name ? You'll raise an Error Warning without first passing it through some kind of test (or function). Only if you

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* 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

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* 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

Re: [PHP] smarty

2004-04-14 Thread Vicente Werner
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

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
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,

Re: Re[2]: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* John W. Holmes [EMAIL PROTECTED] [2004-04-14 11:57:00 -0400]: snip You're relying on web-server writable directories when you use Smarty. It's all a trade-off. This gets problematic in multi-user environments. You cant use mod_php anylonger, instead you have to switch to slow cgi+suexec.

Re: [PHP] smarty

2004-04-14 Thread Curt Zirzow
: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

Re[4]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello John, Wednesday, April 14, 2004, 4:57:00 PM, you wrote: JWH Only if you have error_reporting() set high. If you have a PHP templating JWH solution, you'd turn error_reporting() down when you included the PHP JWH templates so you didn't get a warning. John I'm shocked - of all people I

Re: [PHP] smarty

2004-04-14 Thread pete M
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

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-10 Thread Jochem Maas
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

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-09 Thread Justin Patrin
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

RE: [PHP] smarty

2004-04-08 Thread Vincent DUPONT
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

  1   2   >