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
{% if customer.id == xxx %} | |
<a href="/admin/products/{{ product.id }}">Edit</a> | |
{% endif %} |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.com |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
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
[root@hertzberg ~]# pecl install apc | |
downloading APC-3.1.9.tgz ... | |
Starting to download APC-3.1.9.tgz (155,540 bytes) | |
.................................done: 155,540 bytes | |
54 source files, building | |
running: phpize | |
Configuring for: | |
PHP Api Version: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 |
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
## OS X GENERATED FILES | |
.DS_Store | |
Icon | |
Icon? | |
Thumbs.db | |
._* | |
.Spotlight-V100 | |
.Trashes | |
## MISCELLANEOUS |
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/bash | |
# Copyright (c) 2010 hearSAY, LLC @ http://gohearsay.com | |
# Author: Kevin Smith | |
# | |
# This script is meant to be installed in the web root directory | |
# and run immediately after an EE2 deployment. As long as it's | |
# installed in the web root, it can be executed from any working | |
# directory. | |
# VERY IMPORTANT: If you are running under a suPHP environment |
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 | |
/** | |
* Custom configuration bootstrap file for ExpressionEngine | |
* | |
* Place config.php in your site root | |
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php | |
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php | |
* If you have moved your site root you'll need to update the require_once path | |
* |
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 | |
/* Daniel Ott | |
* 13 June 2010 | |
* A plugin that you can use to send stuff to Tumblr from Expression Engine | |
* using Tumblr's API | |
* | |
* Very minimal for right now. You could expand it to send categories using | |
* the API's "tags" option, send different types of posts, etc. | |
* |
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
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
yum install --enablerepo=rpmforge memcached | |
memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody | |
wget http://pecl.php.net/get/memcache-2.2.5.tgz | |
tar -xvf memcache-2.2.5.tgz | |
cd memcache-2.2.5 | |
phpize && ./configure --enable-memcache && make | |
cp /root/memcache-2.2.5/modules/memcache.so /usr/lib/php/modules/ | |
echo extension=memcache.so >> /etc/php.ini |
NewerOlder