Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
PHP Page Component - code exiting prematurely (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: PHP Page Component - code exiting prematurely
#1075
BigDawg (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
PHP Page Component - code exiting prematurely 2 Years, 3 Months ago Karma: 0  
Hello all. First let me apologise if I'm going about this posting in the wrong manner, as it is the first time I've ever done it. Also, I am a complete noob at PHP/MySQL but I learn quickly...

With that said, could someone please help me with this problem I'm having with a client's web site? I'm using Joomla 1.5.15, the PHP Pages Component and a datagrid component from (PHP Datagrid v 4.x.x) .

Everything works fine together until I try to use the datagrid to filter the data, then the page just reverts back to the home page without showing any results.

Please have a look at this page HealthCare Caribbean - Doctor Search to see exactly what is happening.

I will gladly supply the full code for the datagrid component if required.

PLEASE, PLEASE, HELP!!

Best Regards,
BigDawg
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1076
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 3 Months ago Karma: 10  
In order to display the page created by com_php (PHP Component) you have to pass the parameters option=com_php&Itemid=85 in the url.

You can see this with: http://www.ambientmediasystems.com/healthcare/index.php?option=com_php&Itemid=85

The data grid does not pass this, so it returns to the main page. You will have to modify the datagrid to pass those values.

Can you post the code you're using to include the datagrids please?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1077
BigDawg (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 3 Months ago Karma: 0  
Thanks for your quick response.

I'm including the datagrid code that I use (hope I did it correctly). I'm not sure if you wanted that or just the code that calls the datagrid from Joomla. If so, then I am not sure if this is it (http://www.ambientmediasystems.com/healthcare/index.php?option=com_php&Itemid=85) as the PHP Page Component is what comes into play at that point, i.e. the component is set to contain the datagrid php code and then run by selecting a menu item. Am I making sense here?
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/12 11:00 By BigDawg. Reason: I made a blunder there when trying to upload the file... sorry.
  The administrator has disabled public write access.
#1078
BigDawg (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 3 Months ago Karma: 0  
Man I feel like a total idiot here... anyway, here's the datagrid code. It's ZIPped.
File Attachment:
File Name: find_a_doctor.zip
File Size: 6085
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1079
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 2 Months ago Karma: 10  
I only got the file find_a_doctor.php. This just calls the datagrid class that writes the datagrid as HTML.

You'll need to edit the portion that writes the HTML and add "&option=com_php&Itemid=$Itemid" to the URLs. For the forms, you can add it to the form action or as hidden inputs.

eg: <input type="hidden" name="option" value="com_php" />
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1080
BigDawg (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 2 Months ago Karma: 0  
Thank you again... I THINK that I understand what you are describing. I will have a look at the class and see if I can decipher what needs to be done. If that fails, I hope you don't mind me coming back to you for help, as I am very desperate at this point.

Regards...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.