Hi, since this is my first post to this list: I'm a programmer from Germany; I'm new to PHPTAL, but I have used TAL/METAL a lot with Zope and the Roundup bugtracker. I have just implemented my first site in PHPTAL (v1.2.0).
I had (and still have) some problems when trying to use a layout macro; when I added the metal:define-macro part to the root html element, no output was generated any more (no error message). Thus, I omitted macros for now (I have two templates: one for the normal layout, and one for the feedback form, since I want to use TAL functionality for the input fields; of course, it would be better to use a macro and a slot, but it didn't work for me). My non-macro solution for now is to read the variable content from a file (the name derived from the name of the .php file) and assign it to a 'content' attribute of the PHPTAL instance. This works fine, but it might not be the best solution ;-) Are there some "best practices" for the usage of macros? I had a look at http://phptal.org/manual/en/#metal-use-macro, of course, but I couldn't find any hints regarding my no-output problem nor about how to configure where to look for templates (which would be the problem to be tackled next, once the creation of macros works). System info: Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6 (apparently XAMPP 1.6.8) PHPTAL 1.2.0 Windows XP Any help would be appreciated. Thanks in advance, -- Tobias _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal