Skip to content

Instantly share code, notes, and snippets.

@brandonkelly
brandonkelly / templating.md
Last active February 7, 2024 15:20
Templating in EE vs. Craft
@lukeholder
lukeholder / nav.twig
Last active June 20, 2018 16:53
nested navigation with in template variables.
{% set nav = [
{"href": "http://1.com", "name": "link1","sublinks":null},
{"href": "http://1.com", "name": "link2","sublinks":null},
{"href": "http://1.com", "name": "link3","sublinks":
[{"href": "http://1.com", "name": "link 3.11","sublinks":null},
{"href": "http://1.com", "name": "link 3.22","sublinks":
[{"href": "http://1.com", "name": "link 3.11","sublinks":null},
{"href": "http://1.com", "name": "link 3.22","sublinks":null}
]
}]
@davist11
davist11 / config.php
Last active December 13, 2015 18:18
ExpressionEngine: Don't show template debugging in AJAX requests
<?php
if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
$config['show_profiler'] = (ENV === 'local') ? 'y' : 'n';
$config['template_debugging'] = (ENV === 'local') ? 'y' : 'n';
}
@ziadoz
ziadoz / awesome-php.md
Last active May 10, 2024 15:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.