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

2007-07-24 Thread Man-wai Chang
What you do is assign the items to an array called, say, items. Then you use "foreach" in the template to iterate the array, just like you would in PHP itself. Example 7-8 (Contacts) is pretty close to what you're doing. Need to take a look first. Thank you. I sincerely want to know how experts

Re: [PHP] Re: Smarty Website down?

2007-03-27 Thread Mario Guenterberg
On Tue, Mar 27, 2007 at 07:27:18AM -0500, itoctopus wrote: > looks ok now > The site is ok now. Thanks Mario -- -- | havelsoft.com - Ihr Service Partner fuer Open Source | | Tel: 033876-21 966 | | Notruf: 0173

[PHP] Re: Smarty Website down?

2007-03-27 Thread itoctopus
looks ok now -- itoctopus - http://www.itoctopus.com "Mario Guenterberg" <[EMAIL PROTECTED]> wrote in message news:20070327092337.GA24779@/bin/dnsdomainname... Hi... I try to connect in the last hours and the results are timeouts. Greetings Mario --

[PHP] Re: Smarty and PEAR DB

2005-04-11 Thread Lester Caine
Matthew Weier O'Phinney wrote: As you can see I need the COUNT value but I not know how get it from = query using PEAR. Some body can help me? You'll need to do two different queries, one that counts the number of total results for the criteria, and one that pulls the set with a LIMIT statement. Of

Re: [PHP] Re: Smarty and PEAR DB

2005-04-11 Thread Matthew Weier O'Phinney
* D. Wokan <[EMAIL PROTECTED]>: > Matthew Weier O'Phinney wrote: > > * Reynier Perez Mira <[EMAIL PROTECTED]>: > > > > > 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: > > >

Re: [PHP] Re: Smarty and PEAR DB

2005-04-11 Thread D. Wokan
Matthew Weier O'Phinney wrote: * Reynier Perez Mira <[EMAIL PROTECTED]>: 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] Re: Smarty and PEAR DB

2005-04-11 Thread Matthew Weier O'Phinney
* Reynier Perez Mira <[EMAIL PROTECTED]>: > 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: > > /= > > SmartyPagi

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > Well, I'm a little bit "unpolite" against smarty, since it seems > that people tend to see it as "the best" (tm) and ignore other, > probably better solutions. (its the same thing w/ mysql or mailman) I'm "unpolite" against Smarty because I used to think PHP couldn't *easily

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
>> + bound to the php-interpreter and cannot be used w/ other languages. this point is completely invalid... Haame me any other templating system that can be used across diffeerent languages ?? + content rendering process cannot be separated from the application > server. ITS NOT AN APPLICATION

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 12:11:31 -0400]: > Hey PHP/Smarty templates aren't for everyone. No one said they were. But > for my next project I believe I'll be using native PHP as a template > engine. Well, I'm a little bit "unpolite" against smarty, since it seems that p

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Tim Traver <[EMAIL PROTECTED]> [2004-04-14 09:00:24 -0700]: >Actually, you can use smarty in a way that solves those issues. Not without putting much code around smarty. > Simply not include the logic features of smarty in your templates. But how can I really prevent the one who writes t

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Peter Morgan said: >>>We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That >>>stuff then gets coded. >> >>I agree, and I'm saying you can also do that with native PHP. >>I plan on doing that with the next site I build. Then if I see that it >>makes sense to use Smarty I will, b

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > I really don't like smarty. The idea is simply not right. It's a good idea; in fact, PHP was originally supposed to be a templating engine. You can easily separate business and presentation logic in either PHP or Smarty. > + does not separate (imperative) code from layout.

Re: [PHP] Re: smarty

2004-04-14 Thread Tim Traver
Enrico, Actually, you can use smarty in a way that solves those issues. Simply do not include the logic features of smarty in your templates. That way, the only thing included in the templates is html, and {$variables}. Then your web designers don't need to learn anything. The problem that you

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Justin French <[EMAIL PROTECTED]> [2004-04-15 00:37:41 +1000]: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. Yes, you're right. But then it shoul

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
pete M said: > We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That > stuff then gets coded. I agree, and I'm saying you can also do that with native PHP. I plan on doing that with the next site I build. Then if I see that it makes sense to use Smarty I will, but you can mock

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* pete M <[EMAIL PROTECTED]> [2004-04-14 13:50:19 +0100]: > Moving our sites to smarty is the best thing we've done at our company... > > > I do the php/database coding (logic) > the html designer does the templates/css > and the graphic designer does his bit. I really don't like smarty. The id

Re: [PHP] Re: smarty

2004-04-14 Thread John W. Holmes
From: "pete M" <[EMAIL PROTECTED]> > Think everyone is missing the point.. > the whole point of smarty is to take the presentation code away from the > logic Correct. The point your missing is that PHP can be on both sides of the equation. You can have PHP in your templates that only controls you

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Actually where it =really speeds thing up is the prototype/research/planning etc We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That stuff then gets coded. Doddle Pete Vicente Werner wrote: El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: pete M said: Moving

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
well said kelly !!! > So if we're trying to say that you don't need Smarty to make a simplistic > template, I think even the most diehard Smarty fanatic will agree. It just > sounds a lot like people who don't really see the power of Smarty, saying > that it's got no power and no benefit. That is

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Justin French said: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. > > Taking some random examples from your list: I believe Smarty users would say "Ye

Re: [PHP] Re: smarty

2004-04-14 Thread Kelly Hallman
Apr 14 at 9:33am, Chris de Vidal wrote: > pete M said: > > Moving our sites to smarty is the best thing we've done at our company. > > Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as > mostly (not always) redundant. see my post where I learned that PHP > makes a great temp

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Think everyone is missing the point.. the whole point of smarty is to take the presentation code away from the logic Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in

Re: [PHP] Re: smarty

2004-04-14 Thread Justin French
On 14/04/2004, at 11:38 PM, pete M wrote: How would you code that lot and remember its ALL to do with presentation ? You must remember, Smarty is just a layer over PHP. All the functions that you've listed exist in pure PHP code somewhere. It would relatively easy to code equivalent templates

Re: [PHP] Re: smarty

2004-04-14 Thread Vicente Werner
El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: > pete M said: > > Moving our sites to smarty is the best thing we've done at our company... > > Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as > mostly (not always) redundant. See my post where I learned that PHP

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
what about the modifiers capitalize count_characters cat count_paragraphs count_sentences count_words date_format default escape indent lower nl2br regex_replace replace spacify string_format strip strip_tags truncate upper wordwrap and the functions capture config_load foreach,foreachelse includ

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
pete M said: > Moving our sites to smarty is the best thing we've done at our company... Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as mostly (not always) redundant. See my post where I learned that PHP makes a great templating engine: http://marc.theaimsgroup.com/?l=php

[PHP] Re: smarty

2004-04-14 Thread pete M
Moving our sites to smarty is the best thing we've done at our company... I do the php/database coding (logic) the html designer does the templates/css and the graphic designer does his bit. What's fantastic is that we never ever tread on each other files whilst working on a project, unlike derea

[PHP] Re: Smarty problem

2003-10-08 Thread Rob Adams
"Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I already posted this question in the Smarty group, without success. > > I have a problem with Smarty. I wrote the following function that gets data > from a mysql database: > > function showHeadlines() > { >

[PHP] RE: [SMARTY] Re: dreamweaver extension

2003-09-15 Thread carlos castillo
I would like to know too, where i can get the dreamweaver extension for smarty, thanks! Carlos A. Castillo. Ingeniero de desarrollo [EMAIL PROTECTED] Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218 Bogotá - Colombia _

Re: [PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread Awlad Hussain
Thanks guys I'll have ago with smarty, and let you guys know what I think :) Have a nice day -awlad - Original Message - From: "rush" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 2:18 PM Subject: Re: [PHP] Re: smarty vs. patTe

Re: [PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread rush
"Awlad Hussain" <[EMAIL PROTECTED]> wrote in message 00d801c2d9a7$05c5f360$0200a8c0@GATEWAY">news:00d801c2d9a7$05c5f360$0200a8c0@GATEWAY... > David, > Is there any point using smarty on s small site? eg: website consists of 6/8 > pages? If you are allready fluent with your template engine, yeah, w

Re: [PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread Awlad Hussain
David, Is there any point using smarty on s small site? eg: website consists of 6/8 pages? does it matter on the size of the site? -awlad - Original Message - From: "David Eisenhart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 11:3

[PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread David Eisenhart
I have never used patTemplate but from my experience Smarty is both fast and robust (I now would not consider building a site without it) Even given your scenario I would recommend that you at least consider using a templating engine. Smarty is very quick and easy to set up so just have a play! D

[PHP] Re: smarty vs. patTemplate vs. includes - newbie q

2003-02-20 Thread neko
A great article on PHP and template engines can be found here: http://phppatterns.com/index.php/article/articleview/4/1/1/ The opinon of the author is that template engines might not be worth your time, and I'm inclined to agree. I'd rather develop a more comprehensive CMF which limits what the u

[PHP] Re: smarty vs. patTemplate vs. includes - newbie q

2003-02-19 Thread rush
"David Caplan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > From what I understand, both smarty and patTemplate are popular and both > have supporters and detractors, is one template significantly faster or more > stable than the other? > > If I just use

[PHP] Re: Smarty + css + dreamweaver

2002-12-12 Thread conbud
Daniel Masson wrote: Hi list : This is maybe a silly question from deamweaver users, i hope you people understand what i mean. im working on a site php, smarty,css , etc. the directory structure of the site is this: -- - classes -

Re: [PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2 available

2002-11-07 Thread Maxim Maletsky
ot;John Wards" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, November 07, 2002 9:05 AM > Subject: [PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2 available > > > Whats the point of this system? Someone ex

Re: [PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2available

2002-11-07 Thread Fabien Penso
Hi 1lt ! Thu, 7 Nov 2002 09:18:00 -0500, tu as dit : > No offense, but it looks pretty useless to me. It looks like a wrapper for > PHP. You have to learn all of the "template" commands. Why not just learn or > teach your designer PHP, you'd save time. The idea of a templating system is > to

Re: [PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2 available

2002-11-07 Thread 1LT John W. Holmes
---John Holmes... - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 9:05 AM Subject: [PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2 available Whats the point of this

[PHP] Re: [SMARTY] [Template - announce] Templeet 0.9.2 available

2002-11-07 Thread John Wards
Whats the point of this system? Someone explain this to me? is it a template language? It doesn't look like one? I am confuzed On Thursday 07 Nov 2002 1:36 pm, Fabien Penso wrote: > Hi everyone. > > I thought you would be interested about a new template system called > Templeet. The way

[PHP] Re: Smarty + JavaScript

2001-09-08 Thread John Lim
>From the smarty manual {literal}