patXMLRenderer < FAQ >  



Frequently Asked Questions about the patXMLRenderer
The following is a collection of questions that come up from time to time. Check if you can find an answer to your own question here - otherwise, you can also try the forum. Should everything fail, feel free to contact us.

Is it possible to append a session id to all generated links?


Yes, and it's quite easy to do too. You just have to add the following line of code to your index.php file:
1
2    
3
This will automatically append &PHPSESSID=SessionIdPlaceHere to all internal URLS, as long as you use [RANDY_SELF] for references to Randy in your templates. To create the session ID, just place these two lines in your index.php:


How do I see what XML code an extension generates?


If you are using extensions in your site, you'll want to know which XML tags are returned by the extension so you can design templates for the tags. This is quite easy, just use the following tags:
01<page>
02    <!-- The normal content is placed here -->
03    <randy:setOption option="transform">off</randy:setOption>
04    <string:htmlspecialchars>
05        <!-- Place your extension tags here -->
06        <dbc:query connection="foo">SELECT * FROM patRandyExample ORDER BY foo DESC</dbc:query>
07    </string:htmlspecialchars>
08    <randy:setOption option="transform">on</randy:setOption>
09    <!-- Rest of content is placed here. -->
10</page>
This will only parse but not transform the extension tag and makes to visible to your browser by using htmlspecialchars(). In the above example you would get XML code consisting of <result>, <row> and <field> tags.


Where can I learn more?


There is a two-part tutorial by Vikram Vaswani available:



Partnersites
PHP Application Tools

© 2001-2006
pat is watching you!

Last Updated: 2004-07-14 22:19:50 Jump to the top of the page (of course only if you're far enough down...)