By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

Maximum size in HTML_Template_IT setVariable call?

P: n/a
Hi all,
I am using the HTML_Template_IT package.

I would like to use a template something like below.

<!-- BEGIN TOPIC -->
<h1>{TITLE} ....{TOPLINK}...</h1>

<!-- END TOPIC -->
Then have a while loop in the .php code which list topic headers
followed by topic text.

My question:

Can I do something like
while( there are more topics){
$template->setVariable("TITLE", $title);
$template->setVariable("TOPICLINK", $link);
$template->setVariable("TOPIC-TEXT", require ("..../{$topic}.inc"));

In order to include the topic text at the correct point? Also is there
a maximum size of text that I can
assign to a variable, some of the texts may be several hundred
characters long.


Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
You will need something like:

while( there are more topics){
$title = ...
$link = ...
$text = ...
$template->setVariable("TITLE", $title);
$template->setVariable("TOPICLINK", $link);
$template->setVariable("TOPIC-TEXT", $text);
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.