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 M

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 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 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 > wrote: > >> > > >> > From: Virgilio Quilario > > Most discussion clipped f

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 cod

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 unifie

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 wrote: >> > >> >From: Virgilio Quilario Most discussion clipped for brevity > // OOP > > class DbFireman extends DbPerson > { > pri

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...* Thi

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...* > >>>

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 OO

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 g

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 tackl

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 devel

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bastien Koert
On Thu, Mar 19, 2009 at 12:36 PM, Bob McConnell 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

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 wrote: > > > > From: Virgilio Quilario > > >> That looks nice, but how do I get to the point where I can > understand > > >> how to use it? > > >> > >

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 , but >>> their documents assume significant experience in building and using >>> templat

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 , but their documents assume significant experience in b

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 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 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?

Re: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Bastien Koert
On Thu, Mar 19, 2009 at 11:06 AM, 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 , but > >> their documents assume significant exp

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 , but >> their documents assume significant experience in building and using >> templates. >> >> Where can I find gu

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 , but > their documents assume significant experience in building and using > templates. > > Where can I find guidance or tutorials on how to do

Re: [PHP] Smarty Tips and Techniques

2009-03-18 Thread Thodoris
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 , but their documents assume significant experience in building and using templates. Where can I find guidance or tutorials on how to do all of thi

RE: [PHP] Smarty Tips and Techniques

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

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

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 http://smarty.php.net/manual/en/languag

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 Marqué

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

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

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 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?

[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->templ

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

2005-08-11 Thread Matthew Weier O'Phinney
* 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

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 it

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 t

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 templ

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 com

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); $tpl->assign("events"

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

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. > > AN

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

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: [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 -and if you follo the recommended > way: > Tomay-toe, toh-mah-toe.

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 -and if you follo the recommended way: 2nd. As other users pointed, error handling. 3th. Lac

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 11:33:56 -0400]: > 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 > anoth

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 10:30:53 -0400]: > 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 se

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>

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-general&m=108145205519710&w=

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
Vicente Werner said: > > http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=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

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
pete M said: > what about the modifiers > 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-general&m=108145205519710&w=2 "[By using only PHP], At worst [I lose] some of the nice Smarty f

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 ma

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 pr

RE: [PHP] smarty

2004-04-08 Thread Pablo Gosse
"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!" Shame on you for misquoting Scarface. G'nite, "Tony". Next time you're going to quote a classic please get

Re: [PHP] smarty

2004-04-08 Thread Curt Zirzow
* 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 thi

RE: [PHP] smarty

2004-04-08 Thread PHP Email List
> 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

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

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

Re: [PHP] smarty

2004-04-08 Thread Antonio Montana
"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:

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
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 – ww

Re: [PHP] smarty

2004-04-08 Thread Justin Patrin
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 :) '> Uhhh, yeah--that's not a templating, that's called spaghetti code :) You get the concept. Smarty, as you know, basically takes a

RE: [PHP] smarty

2004-04-08 Thread Chris W. Parker
Antonio M 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 -- > an

RE: [PHP] smarty

2004-04-08 Thread Antonio M
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.

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

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

Re: [PHP] smarty - php as template

2004-04-08 Thread Amanda Hemmerich
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 anyo

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

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

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
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

Re: [PHP] smarty

2004-04-08 Thread John Nichel
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 off-

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 11:04, John Nichel wrote: > 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 > > > >

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
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

Re: [PHP] smarty

2004-04-08 Thread John Nichel
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'

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
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 >

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
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. --

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
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 temp

RE: [PHP] smarty

2004-04-08 Thread Hundiak, Arthur
> 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

Re: [PHP] smarty

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

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
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 . Eith

RE: [PHP] smarty

2004-04-08 Thread Kelly Hallman
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 t

RE: [PHP] smarty

2004-04-08 Thread Aaron Wolski
> -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'

Re: [PHP] smarty

2004-04-08 Thread Richard Harb
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-04-07 at 21:35, Kel

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

RE: [PHP] smarty

2004-04-07 Thread Jason Sheets
kely to be swayed 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

Re: [PHP] smarty

2004-04-07 Thread Kelly Hallman
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 pre

Re: [PHP] smarty

2004-04-07 Thread Justin French
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 :) '> Uhhh, yeah--that's not a templating, that's called spaghetti code :) I fail to see the difference in complexity. Taking an example straight form the sma

Re: [PHP] smarty

2004-04-07 Thread Kelly Hallman
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

Re: [PHP] smarty

2004-04-07 Thread John W. Holmes
Kelly Hallman wrote: Apr 8 at 10:26am, Justin French wrote: PHP itself is a great templating language :) '> Uhhh, yeah--that's not a templating, that's called spaghetti code :) +1 - Use of buzzword You get the concept. Smarty, as you know, basically takes a Smarty template and writes PH

Re: [PHP] smarty

2004-04-07 Thread Robert Cummings
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 :) > > > > > > > > > > > > > > '> > > > > Uhhh, yeah--that's not a templating, that's called spaghetti code :) > > You get the concept. Smarty, as you k

Re: [PHP] smarty

2004-04-07 Thread Kelly Hallman
Apr 8 at 10:26am, Justin French wrote: > PHP itself is a great templating language :) > > > > > > > '> > Uhhh, yeah--that's not a templating, that's called spaghetti code :) You get the concept. Smarty, as you know, basically takes a Smarty template and writes PHP code similar to what you

RE: [PHP] smarty

2004-04-07 Thread Jason Sheets
technique in very many applications I have to support. Additionally the usage of 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 sma

Re: [PHP] smarty

2004-04-07 Thread Justin French
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 templa

Re: [PHP] smarty

2004-04-07 Thread John W. Holmes
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 w

Re: [PHP] smarty

2004-04-07 Thread Jochem Maas
Chris W. Parker wrote: Chris de Vidal 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

Re: [PHP] smarty

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

Re: [PHP] smarty

2004-04-07 Thread John W. Holmes
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 >

Re: [PHP] smarty

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

RE: [PHP] smarty

2004-04-07 Thread Jason Sheets
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 le

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
John W. Holmes 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 >> this in the template: >> {if $level > 2} >> {bio} >> {/

RE: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Chris W. Parker 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 this in the template: >> {if $level > 2} >> {bio} I shou

Re: [PHP] smarty

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

Re: [PHP] smarty

2004-04-06 Thread Kelly Hallman
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

Re: [PHP] smarty

2004-04-06 Thread John W. Holmes
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}

RE: [PHP] smarty

2004-04-06 Thread Chris W. Parker
Chris de Vidal 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 >

  1   2   >