I have a number of classes (Managers and Data) that have include_once's. Seems that when I include a data class into a manager, they work fine together...but when I include the manager class in my view to get the data, it's broken. I assume due to the view actually adding the manage to itself which makes the path to the data incorrect since the view is up 3 directories from root /adoptions/apps/add/ and the manager and data classes are 4 directories from the root. Is that correct?
Since I am new to PHP I noticed that / takes me further back than just the web root. I am running apache on a windows machine and the path to the htdoc is actually
c:/Program Files(x86)/Zend/Apache2/htdocs/mywebsite
(if that helps at all). I would like to just have all my includes be something like
include_once('/com/mywebsite/data/people/People.class.php';
Thanks!
error_reporting(~0); ini_set('display_errors', 1);at the very beginning of your script. Additionally you should enable error logging and follow the error log.