For easier debugging, add this to the else block on index.php
then in front.php, instead of print front()
, put $front = front()
//... else {
require('front.php'); //$front = front()->withSugar()->addSpice()->andEverythingNice()..
if(isset($_GET['debug'])) {
var_dump($front);
} else {
print $front;
}
// }
Then you can go to your browser to show output of $front
http://localhost/?debug=1 or http://localhost/?debug=true