In Drupal 7, I am writing PHP from inside the Front Page module, say:
$page = include_once "templates/page.php";
I put the “templates/page.php” under /sites/all/modules/front and Drupal complains about file missing. Any suggestion where best to put up the files to be included?
Then, after installing the PHP Simple HTML DOM Parser, I wrote the following
$html = new simple_html_dom();
and was complained for Class ‘simple_html_dom’ not found. I have tried duplicating the library file to the same folder and home, but all cases not working. How to set up the correct path?
Many thanks.
Sponsored by SupremePR