473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Maximum size in HTML_Template_IT setVariable call?

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>

{TOPIC-TEXT}
<!-- 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.

regards,
Nick.

Jul 17 '05 #1
1 1566
You will need something like:

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: chotiwallah | last post by:
there seems to be a maximum size (in px) for images created with imagecreatetruecolor (somewhere between 4000 px and 4500 px). if the image is bigger than that size, the browser doesn't display it...
0
by: bettyann | last post by:
hello all, is there a function within the HTML_Template_IT package that can get all variables in a current block? sort of the opposite of what $template->setVariable does, ie, perhaps a...
7
by: Joey C. | last post by:
Hello, I'm designing a small "briefcase" program that will allow me to quickly upload, download, and delete files in a briefcase. The only real things that I have left to do are to design a...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
5
by: Evangelista Sami | last post by:
hello is there a maximum size that can be allocated by a malloc call? is this defined by the standard? thanks Sami Evangelista
4
by: Gregory Hassett | last post by:
Hello, Does anyone know how to get the maximum size of a datagram for a UDP Socket created via .NET's System.Net.Sockets.Socket class? Thanks!
7
by: Kamran | last post by:
Hi, I have hundreds of variables inside a class (integer, float) and a long range of set/get functions to manipulate their values. What I am wondering about is whether there is a way in C++ to...
3
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors??...
2
by: Woody Ling | last post by:
I am now using db2 v8.2 64bits without DPF. I want to create a very large table which is about 1000G and the record length is suitable for 32K page size. I find in the manual that the maximum size...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.