METAL in PHPTAL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • willl69

    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

Working...