Hi all,
I have been given a few php files that seem to work outside EE. The files are all linked via “includes”. I am now bringing those files into EE. The original files are:
install.php
php-cloudsandra.php
preferences.php
temp_header.php
In the install.php the first few lines of code are:
<?PHP
include('preferences.php');
include('php-cloudsandra.php');In the temp_header.php the first few lines of code are:
<?PHP
include('preferences.php');
global $promoter_id;When I bring this into EE, I created templates in a group called ‘promoters’, templates are:
event_install
event_php-cloudsandra
event_preferences
event_temp_header
Is the following the proper way to do the includes?
In the event_install the first few lines of code are:
<?PHP
include('{embeds=promoters/preferences}');
include('{embeds=promoters/php-cloudsandra}');and allowed php parsed on the output.
In the event_temp_header the first few lines of code are:
<?PHP
include('{embeds=promoters/preferences}');
global $promoter_id;and allowed php parsed on the output.
Is that the proper way to do it? Cause that is not working so I am assuming not… 😖
Regards,
socaprice