![]() |
Template class - help!!
I have written the following simple class - first of all, if I can improve any parts, please let me know!!
PHP Code:
PHP Code:
|
PHP Code:
-m |
The best way to do that would be to make a replaceTags version that accepts arrays and then iterates though them like:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
I would also recommed you to use the private/protected/public modifiers =) Hope this helps |
Sorry for the old bump.
Want to output each row from a mysql while statement. Whats the best way to get around this? Meant something so in the template I can add: <% beginwhile:results %> <div> <h3><% Name %></h3> <p><% Address %></p> </div> <% endwhile:results %> |
Quote:
PHP Code:
PHP Code:
|
Quote:
|
| All times are GMT. The time now is 12:20 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0