Skip to content

Instantly share code, notes, and snippets.

@jpalala
Last active August 29, 2015 14:18
Show Gist options
  • Save jpalala/8dc9c64561aed029533a to your computer and use it in GitHub Desktop.
Save jpalala/8dc9c64561aed029533a to your computer and use it in GitHub Desktop.
How to enable "?debug=1" to debug in Eden PHP framework

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment