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
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
Copyright © 2021 Jogjafile Inc.
It's not a good practice to rely on globals at all. You should be passing variables to PHPTAL explicitly:
and then use
action="${paypal/url}"or if you really must: