Reply to METAL in PHPTAL

Your name:

Reply:


Posted by willl69 on 07/06/05 04:20

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация