Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { | |
$config['show_profiler'] = (ENV === 'local') ? 'y' : 'n'; | |
$config['template_debugging'] = (ENV === 'local') ? 'y' : 'n'; | |
} |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.