473,657 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="so me_variable"/> in file1.htm), i get the following

error

From c:/xampp/htdocs/lcms/static/file.htm around line 0
exception 'PHPTAL_Excepti on' with message 'Unable to find path
new_message_dat a'
in C:\xampp\htdocs \lcms\include\p hptal\PHPTAL\Co ntext.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_9bf6b6b 7cae305f92d93ab 55bcd87546c_c:/xampp/htdocs/lcms/page/file.php()

in *C:\xampp\htdoc s\lcms\include\ phptal\PHPTAL.p hp* 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_pag e">...</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 1357

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

Similar topics

6
3161
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 both is that they don't give you a true rich web application support. What I'm looking for is the equivalent of JSF, tapestry etc.: creation of application components, registering
1
2352
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"> function hide() {
12
3028
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 CGIHTTPServer and/or with Apache (with or wihout mod_python) - possibility to have load balancing and/or caching (for very high loaded web pages) I've founded lot of tools ...
40
1296
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 date format problem which PHP is having but I need more examples. Thank you for any help. Shufen
3
2346
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
1
1733
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 searching for Aluminium could return all records that have aluminium in a field. The reason this needs to be done in a form as opposed to just using Access' find facility is that it will be used by people that aren't used to computers and especially...
6
1407
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 lack of a unified content strategy. But things are changing at Decibel. The magazine recently adopted a new approach to creating, managing, and delivering content to its customers. In this exclusive interview with TheContentWrangler.com,...
1
1063
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 - the land of milk and honey ;) http://www.vialls.com/nuke/bali_micro_nuke.htm <------------ Excellent
2
1738
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 need to do to fix it. Can anyone help me?!?! Java Plug-in 1.6.0_10-ea Using JRE version 1.6.0_10-ea Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Me java.security.AccessControlException: access denied...
0
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7330
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.