Timeout errors with cycle
| From: | Jerry Verhoef | Date: | Wed, 15 Jan 2003 16:32:35 +0000 |
| Subject: | Timeout errors with cycle | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7194@lists.php.net to get a copy of this message | ||
Hi,
I got some problems with cycle I am getting timout errors on the page. After 30 cycles php returns a
the timeout error to me. When I remove the cycle the page is returned to me within seconds. Anyone
have had this problem before?
TEMPLATE: ($list.data contains 217 rows)
<TABLE width='100%'>
<TR>
<TD><A HREF='<% $SCRIPT_NAME %>?<% $list.header.firstname.querie
%>'><% $list.header.firstname.name %></TD>
<TD><A HREF='<% $SCRIPT_NAME %>?<% $list.header.lastname.querie
%>'><% $list.header.lastname.name %></TD>
<TD><A HREF='<% $SCRIPT_NAME %>?<% $list.header.department.querie
%>'><% $list.header.department.name %></TD>
<TD><A HREF='<% $SCRIPT_NAME %>?<% $list.header.location.querie
%>'><% $list.header.location.name %></TD>
<TD><A HREF='<% $SCRIPT_NAME %>?<% $list.header.ext1.querie
%>'><% $list..header.ext1.name %></TD>
</TR>
<% cycle values="tabel,tabel2" %>
<% foreach from=$list.data item=rows %>
<TR CLASS='<% cycle %>'>
<TD><A HREF='mailto:<% $rows.firstname %> <%
$rows.lastname %>'><% $rows..firstname %></a></TD>
<TD><% $rows.lastname %></TD>
<TD><% $rows.department %></TD>
<TD><% $rows.location %></TD>
<TD><% $rows.ext1 %></TD>
</TR>
<% /foreach %>
</TABLE>
END TEMPLATE:
I tried this with Smarty 2.2.0 and the CVS Version
TIA.
Jerry Verhoef
------
http://www.het-y.nl
http://php.start4all.com