Hi, first post around here. :) I was wondering if you can help me with a problem I have with a page I'm making on Joomla! 1.5.9.
Originally it was just static content, but using your plugin I managed to reduce almost 4000 lines of code in HTML to 1480 in PHP.
Since all I did was just make functions to structure some content, I wanted to separate content from functions, so I then placed the functions and content into two files (reducing the previous 1480 lines to a little over 100; not bad), and was planning to include them using something like this:
| Code: |
<?php
include("/includes/PHP_MySQL/products_int_7-to-12.php");
include("/includes/PHP_MySQL/product_functions.php");?> |
(This files are placed in /httpdocs/includes/PHP_MySQL).
But if I do that, not even the template around the article page shows up, just a blank page.
Even doing something like this:
| Code: |
<?php
function testPHP()
{
echo "<br/>This worked<br/>";
}
?> |
saving this as test.php, and placing this directly in the corresponding id for the test article in jos_content:
| Code: |
<?php
include("/includes/PHP_MySQL/test.php");
testPHP();
?> |
renders a blank page again.
However, if I access a test page outside of Joomla (same server) with the same code, the page renders fine.
Is there something I'm doing wrong? I could really use some help with this.