[rt-users] Custome Page will not display properly (PHP)
ikeusmaximus
mgarman at peakehealthcare.com
Mon Aug 20 12:51:58 EDT 2012
Kevin Falcone-2 wrote:
>
> That code isn't PHP, which is probably why it doesn't load properly.
> RT is written in perl using HTML::Mason.
>
I realize that the three lines that I posted are not PHP, I was just posting
them as a reference, because those three lines cause the new page to look
like an RT page and are ultimately what cause the php code to break. But
that does not explain why the rest of my code (which is PHP and html) is not
working. Unless RT cannot handle PHP, which does not sound right.
-ikeusmaxmus
Kevin Falcone-2 wrote:
>
> 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.
>
>
>
--
View this message in context: http://old.nabble.com/Custome-Page-will-not-display-properly-%28PHP%29-tp34325389p34325429.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list