Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to include a foo.php in page.tpl.php in place of the slider items. foo.php dynamically generates 4 slider items from a mysql DB with the required divs. Is this possible? My frontpage breaks whenever I try this. See example code below:
page.tpl.php
require_once('foo.php');
foo.php
connects to a MySQL DB and echos 4 items along with the required divs.
Any thoughts?
Thanks
Comments
Comment #1
cabenave CreditAttribution: cabenave commentedPlease disregard this post. I was able to fix the problem. It was related to openbase_dir restrictions.