Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Parsing php in section pages
JanDW wrote:
Where am I messing up this time? sigh
Thanks in advance.
You need to access the global from the global scope. The variable is not accessible inside the function. For example:
<txp:php>
global $dtstart; /* Back in the biz */
echo $dtstart;
</txp:php>
Or using the $GLOBALS superglobal array which contains all the variables defined in the global scope:
<txp:php>
echo $GLOBALS['dtstart'];
</txp:php>
Offline
Re: Parsing php in section pages
ah, thanks for making me understand, guys.
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline