Questions tagged [phptal]

PHPTAL is a templating engine for PHP5 that implements the brilliant Zope Page Templates syntax.

PHPTAL is a templating engine for PHP5 that implements the brilliant Zope Page Templates syntax, TAL and METAL.

Tag usage

When asking questions about the template syntax, consider adding (for TAL template constructs) and / or (for METAL macro constructs) as needed.

38 questions
0
votes
1 answer

How to require PHPTAL.php

How do I require PHPTAL.php that I added to my buildpath (PHP Include path folder)? It would do with either an absolute or relative path.
user1151840
  • 41
  • 1
  • 3
0
votes
1 answer

What's wrong with my PHPTAL syntax?

.Quick question - I have the following, working syntax:
Dycey
  • 4,767
  • 5
  • 47
  • 86
0
votes
1 answer

Strange printing problem

We have a certain page in our site that when you print, it doesn't come out properly! We also have a print button on the site that when you press it opens a "printing optimized" version of the page in a new popup window with background colors…
Diego
  • 16,830
  • 8
  • 34
  • 46
0
votes
1 answer

How to set a path with the PHPTAL::setPhpCodeDestination method on Windows?

I have project with Zend Framework. I install xampp and download project. However, I do not know how to set the path to phptal above. It is from what I noticed application.ini file and PHPTAL.php. In both is set to / tmp / and then the project does…
user4406224
0
votes
0 answers

Can you add multiple classes to an element with tal attribute?

tal:attributes Here is what I am trying to do.
Josh Birdwell
  • 745
  • 4
  • 21
0
votes
1 answer

how to get a reference to GLOBALS php variable inside template using Phptal

Below line tal:attributes="action php:GLOBALS['paypal']['url']" raises: PHPTAL_VariableNotFoundException' with message 'Unable to find variable 'GLOBALS' in current scope' while tal:attributes="action php:GLOBALS['paypal']['url']" works
-1
votes
1 answer

I want insert to VAR in the tal:repeat

I want to know how to use this tal:repeat in my case. For example, I made this two codes: tr> td tal:repeat="table_info table_info" tal:content="table_info/Field"/> /tr> tr tal:repeat="select_all select_all"> 1td tal:content="select_all/…
user1151840
  • 41
  • 1
  • 3
-1
votes
2 answers

CakePHP 2.0 authentication(login) without ctp files but other types

Here, A COMPLETE LOGIN AND AUTHENTICATION APPLICATION TUTORIAL FOR CAKEPHP 2.3 I got some hints to build the authentication functionality. I am now using PHPTAL which use html instead of ctp files. Is there anyone who use the html files to cooperate…
tech_me
  • 540
  • 2
  • 7
  • 20
1 2
3