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
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
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
--
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
* 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:
> > >
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:
* 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
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
>> + 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
* 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
* 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
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
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.
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
* 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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
"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()
> {
>
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
_
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
"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
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
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
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
"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
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
-
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
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
---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
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
>From the smarty manual
{literal}