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
What makes a good bug report: | |
* Steps to reproduce, with earliest step Shouldn’t need to know code | |
* Description of the bug. What you saw vs what you expected. | |
* Error messages or error codes. | |
* | |
* PHP errors- | |
* |
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
vcl 4.0; | |
import xkey; | |
# Based on: https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl | |
import std; | |
import directors; | |
backend server1 { # Define one backend | |
.host = "127.0.0.1"; # IP or Hostname of backend | |
.port = "80"; # Port Apache or whatever is listening |
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
#!/bin/sh | |
RESET=`tput sgr0` | |
RED=`tput setaf 1` | |
GREEN=`tput setaf 2` | |
if [ "$1" ]; then | |
if ! [ -e "$1" ] | |
then |