Major Change to DisplayList() $locations

0 views
Skip to first unread message

Nick DeNardis

unread,
Sep 10, 2006, 10:36:34 AM9/10/06
to PHPSimpl
A change has been made in the DisplayList() function that will break
your applications. This is a necessary change to expand the support of
the DisplayList() function. The change entails instead of using a
sprintf on the $locations for each column of the DisplayList() which
limits the links or outputs to a single item_id and data in that order
it has been changed to a dynamic replacement of the strings {$item_id}
and {$data} so they can be used in any order and as many times as
needed.

Example of the change:
<a href="category.php?id=%d">%s</a>
to
<a href="category.php?id={$item_id}">{$data}</a>

Example one of the benefits:
<img src="images/{$data}" alt="Image: {$data}" width="' .
GetWidth('images/{$data}) . '" height="' . GetHeight('images/{$data}) .
'" />

Although these examples are basic the expandability is enormous.

Reply all
Reply to author
Forward
0 new messages