Link to home
Start Free TrialLog in
Avatar of TonyReba
TonyRebaFlag for United States of America

asked on

custom joomla page

I am trying to create a custom joomla page that pull put the data entered in a database such as


username
date
quizname,

I am a .net programmer and have very few knboledge of php , how would I do this , this is the page that i currently have
<?php
/*
Note that this line: /F (http://www.mysite.com/CompletionForm.pdf)
determines the PDF File to be filled in. Change to point to the
PDF file on your site. txtName variable is the user's name to populate.
*/

var_dump($_SESSION);
ob_start(); 

$txtName  = $_GET['givenname'];

echo $txtName ;
//$txtName  =  $this->get('firstname');
//echo $this->session->title; 

//$txtCourseName = $GET['txtCourseName'];
//$txtCourseName = $GET['txtCompletionDate'];
header("Content-type: application/vnd.fdf");
echo <<<EOT
%FDF-1.2
1 0 obj
<<
/FDF
<< 
/Fields
[ 
<<
/T (txtName)
/V ({$txtName})
>> 
]
/F (http://appdevelsvr:8080/shquiz/media/certificate/CourseCertificate.pdf)

>> 
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF
EOT;
ob_flush(); 
?>

Open in new window

Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

How does Joomla fit into this question?  It looks more like a script to create a PDF?
Avatar of TonyReba

ASKER

Well my  first goal is to be able to pull the data either by quering the mysql database on Joomla, or the classes in Joomla and display in a Joomla page,   After that I need to create a pdf form with those retreived values..

Can you please help, at least give me a starting point on where to look this values ?
Here's what I use to accomplish that.  (I have built extremely complex custom php pages for my company on more than 1 Joomla web application.)

1) Install Jumi.
http://extensions.joomla.org/extensions/edition/custom-code-in-content/1023

2) Create a custom php page and place it in this location:
components/com_jumi/files/<folderyoucreate>/fileyoucreate.php

3) Go to Components and select Jumi Application

4) Click on "NEW"

5) Enter a title and the path to the custom page.
See Screen shot.

6) Create new menu item, use Jumi Application and point to custom file you created.

This should do the trick.  If you have any problems, let me know.
1.PNG
ASKER CERTIFIED SOLUTION
Avatar of Carlos Llanos
Carlos Llanos
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ty