473,398 Members | 2,404 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.

METAL in PHPTAL

Hi

I was wondering if there was a way to include mutiple metal:use-maco tags
in
the one page. The code i am using is the following (html)

<tr>
<td style="height: 600px; vertical-align: top;">

<div metal:use-macro="path/file.htm/body_page" />
</td>
<td style="vertical-align: top;">

<div metal:use-macro="path/file2.htm/body_page" />
</td>
</tr>

This code will read the htm files and output the data, but if i have php
elemets in the included body page
(say <div tal:content="some_variable"/> in file1.htm), i get the following

error

From c:/xampp/htdocs/lcms/static/file.htm around line 0
exception 'PHPTAL_Exception' with message 'Unable to find path
new_message_data'
in C:\xampp\htdocs\lcms\include\phptal\PHPTAL\Context .php:152
and if i include the PHP file.php insead of the HTM file.htm i get the
following error
*Fatal error*: Call to undefined function
tpl_1_0_9bf6b6b7cae305f92d93ab55bcd87546c_c:/xampp/htdocs/lcms/page/file.php()

in *C:\xampp\htdocs\lcms\include\phptal\PHPTAL.php* on line *348

*Does anyone know a way to include these files so that it reads the
file.phpfile, passes all relevent info to the <div
metal:define-macro="body_page">...</div> in the file.htm file and outputs

the macro into the line <div metal:use-macro="path/body_page"> in a main
template file? Any help, suggestions or workarounds for this are greatly
appreciated.

Cheers

Will

Jul 17 '05 #1
0 1346

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

Similar topics

6
by: ittay.dror | last post by:
Hi, I'm a java developer trying to get acquainted with PHP. In java web development, the most popular web applications framework is Struts, which is equivalent to Smarty. The problem with...
1
by: willl69 | last post by:
Hi I have a problem when i try to output javascript code through phptal the " quotes come out as &quot and thus wont execute in the browser. An Example: <script language="JavaScript"> ...
12
by: vincent_delft | last post by:
I'm looking for a Web Tool kit to build web pages with the following criteria (in priority order) : - easy to use, develop (reuseability of code, ...) - flexible (ideally should run with Python...
40
by: Shufen | last post by:
Hi all, Can someone who has use PHP before and know quite well about the language, tell me what are the stuffs that Python offers and PHP doesn't. A few examples will be nice. I know about the...
3
by: Jaroslaw Zabiello | last post by:
I got strange errors in Zope 2.7. METALError macro 'context/base' has incompatible version None, at line 1, column 1 One ZPT file (named 'base') defines some simply slots: <html...
1
by: SamBenjamin | last post by:
Is it possible to incorporate a search into a form using a text field for the search word(s) and a command button to start the search, returning results that don't exactly match.. For example...
6
by: Scott Abel | last post by:
Decibel, the underground hard rock and extreme heavy metal magazine, had the same problems as many other content-heavy organizations: inefficient and disconnected processes, outdated tools, and the...
1
by: thermate | last post by:
W88 warhead design http://www.thepriceofliberty.org/06/09/25/wardpics-5.htm http://www.thepriceofliberty.org/06/09/25/wardpics-4.htm Bali bomb was possibly a micronuke from Dimona Israel -...
2
by: ace84 | last post by:
I created an applet that i want to post on my site. I wrote it and compiled it and it works fine on my computer. But when I upload it to my server, I keep getting this error and I am not sure what I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.