I need to include a php file into my 'module project'. But because this file is somehow outside the joomla framework, I can't call the Joomla methods in this file.
Is there an easy way, how can I do this?
--
This is the usuall structure of a module in J!1.5
/mod_customname
|
|--tmpl
| |
| |--default.php
|
|--problem_directory
| |
| |--problem_file.php
|
|--helper.php
|--mod_customname.php
The problem_file.php is called from default.php. I generate an AJAX request and the problem_file.php should generate a response, which will be included in my
The problem_file.php contains something like this:
$db = JFactory::getDBO();
....
?>
But I get the error, that the JFactory is not known. How can I properly use Joomla framework methods in this file? Btw. everything works fine, if the problem_file.php is a pure php file, e.g:
echo "works ..";
....
?>
Thx a lot in advance !! I am really stuck here.