I am not the most advanced PHP programmer, so having a reliable debugging environment is crucial for me as I modify a new Page type in mysite/code. With only one minor PHP typo in this new file, I can cause my entire SilverStripe site to fail (white screens with no content -- both on the public and admin sides). (I can literally cause and solve the problem by changing one file in mysite/code/.
After reading some other posts, I've tried in vain to add the following two lines to mysite/_config.php to force my SilverStripe installation into dev mode:
if(Director::isLive()) Debug::send_errors_to("[email protected]");
I've then issued ad dev/build/?flush=1 for good measure. Even with this step successfully completed, when I put my new .php file into the code folder I cause the site to fail.
I am running this site on a hosting provider (Omnis.com) and thus I don't have access to the overall Apache server logs (at least, I don't know how to access them). I am sure that I can troubleshoot my PHP issue, if I could only see where my code is failing. Could someone please walk me through what I am doing wrong?