I'm trying to add some sanity to the chaos that is Drupal by separating files in a fo-MVC structure. Within a Drupal view you can add Header or Footer code in textarea boxes with the option to add "PHP Code". Here is my code within the Header textarea box:
Fatal error: require_once() [function.require]: Failed opening required '<path_to_root>/sites/all/modules/citysensei/controllers/staff_index.php' (include_path='.:/Applications/MAMP/bin/php5/lib/php') in <path_to_root>/includes/common.inc(1355) : eval()'d code on line 2
Is there a work around for this?
Thanks in advance,
Kris (quickly giving up on Drupal)
CODE:
require_once('<path_to_root>/sites/all/modules/citysensei/controllers/staff_index.php');