Hi!
I have a problem with my module code. I make a blank module and i include a main file (main.php). This file is saved in assets/modules/test. In the same directory there is a file named functions.php. In the functions.php there are some self made PHP functions. The functions.php is included in the main.php.
My problem is that the main.php code is displayed normal when i start the module but the code of the functions.php doesn’t shown.
Let’s give me an example:
The module code:
include ("../assets/modules/test/main.php");
The main.php:
<?php
echo "The main.php<br>";
include ("../assets/modules/test/functions.php");
?>
The functions.php:
<?php
echo "The functions.php";
?>
My output is only
The main.php
When i remove the PHP Tags (<?php ?>) in the functions.php my output is
The main.php
echo"The functions.php";
Can anybody tell me what my problem is???
Thanks alot!
greetings, Lupo