[rt-users] Custome Page will not display properly (PHP)

Kevin Falcone falcone at bestpractical.com
Mon Aug 20 12:44:08 EDT 2012


On Mon, Aug 20, 2012 at 09:41:32AM -0700, ikeusmaximus wrote:
> 
> I am attempting to create a custom page that will serve as a directory
> listing for a few folders that contain reports generated through BIRT.
> 
> I have already modified the left-side navigation bar, and I have also gotten
> to the point when I can make the new custom page display all the RT bars and
> interface.  The issue is that the page will not display properly when the
> php code for listing the directory is put in.  Only the raw code displays on
> the webpage, not the contents of the directory.  
> 
> The php code (along with HTML for the page) consists of approximately 8 php
> functions which are all contained inside the <?php and ?> tags.  I have
> tested the code without the RT commands at the top of the file:
> 
> <& /Elements/Header, Title => loc("Analytics") &>
> <& /Elements/Tabs &>
> <& /Elements/ListActions &>
> 
> and the code works fine.  It is only when I add these three lines does the
> php not work.

That code isn't PHP, which is probably why it doesn't load properly.
RT is written in perl using HTML::Mason.

-kevin

> The code has been placed in ".index.php" (which is the index file for the
> custom page) and that file is located in the parent directory for all the
> reports.  This directory is not under the RT source, a symbolic link has
> been created to point to the .index file from within the RT source.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120820/4359b451/attachment.sig>


More information about the rt-users mailing list