I'll second the suggestion about checking die_on_bad_params. You don't need
it turned on unless you're trying to do exactly what you're trying to avoid
here. Turning it off will allow you to skip params.
- Original Message -
From: "Vince Veggus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
7;EXAMPLE_LOOP', 'BEE']);
...but how would I go about getting the value of a variable inside a loop
using either param() or query()?
Brian McCain
PageMasters Internet Group
---
This SF.net email is spo
tly you're
adhering to the separation of data and presentation...though, if you're
using H-T-Expr, that probably isn't too terribly great a concern.
Brian McCain
PageMasters Internet Group
- Original Message -
From: "Kapoor, Nishikant X" <[EMAIL PROTECTED]&
lage developer nor a Bricolage user, and if I wanted
to get notifications of updates to Bricolage, I'd sign up for one of their
lists.
Brian McCain
PageMasters Internet Group
---
This sf.net email is sponsored by: Are you worried about
y
n EMPTY loop, which wont display any data, but
# will keep H:T from throwing an error.
Hope this helps.
Brian McCain
PageMasters Internet Group
- Original Message -
From: "Kenny Smith" <[EMAIL PROTECTED]>
To: "Brian McCain" <[EMAIL PROTECTED]>; "Doc"
status" which
will be set to 'null' if $rows evaluates as false. It's a bit of overkill,
but it'll fix your problem.
But seriously Doc, lighten up, and remember that we're trying to help you
out of the goodness of our hearts and our wish to support other deve
oblem. Speaking
of that specific problem...maybe you could clear it up for us Doc, exactly
what is it that you are trying to do? The more detailed the question, the
higher chance of an accurate (and applicable) solution.
Brian McCain
PageMasters Internet Group
- Original Message -
From: &quo
oop data, and all you have to do is name it:
$template->param(ROWS => $arrayref);
Of course, you'll want some error handling, because if no rows are returned,
you'll get an error complaining that the parameter is not a TMPL_VAR, and
your template won't parse.
Brian McCain
Page
e
slightly less crazy workarounds, but the mod_rewrite solution is by far the
most solid, and coolest solution. (Thanks Kenny)
| Thanks for the help,
|
| Will
|
|
Have fun,
Brian McCain
PageMasters Internet Group
---
This SF.NET email is sponsored
ly felt like it.
Brian McCain
PageMasters Internet Group
| PLMK,
| THNX,
|
| Will
|
| __
| Do you Yahoo!?
| Yahoo! News - Today's headlines
| http://news.yahoo.com
|
|
| ---
| This SF.NET email
Why not just stick the block of HTML, tmpl_vars and all, into another
template, and then anywhere you have that block, replace it with
?
Brian McCain
PageMasters Internet Group
- Original Message -
From: "David Veatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
S
Without knowing how you're using the associate feature, it's hard to come up
with a workaround. It seems like loops should work for you, but if whatever
youre doing with associate is making that impossible, perhaps you could
include the portion of your code where you use associate?
Brian
- O
On Thursday, July 25, 2002, Sam Tregar wrote:
| On Thu, 25 Jul 2002, Philip S Tellis wrote:
|
| > What I would really like to see though is a and
| > . That would really clean up some of my templates that
| > have too many nested ifs.
|
| Mmm.. I've considered it at various points. Each tim
ailable in HTML::Template::Expr.
Brian McCain
PageMasters Internet Group
- Original Message -
From: "Douglas Kirkland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 2:16 PM
Subject: Re: [htmltmpl] TMPL_IF truth vs definition
| On Friday
14 matches
Mail list logo