Skip to content

Instantly share code, notes, and snippets.

View kriswallsmith's full-sized avatar

Kris Wallsmith kriswallsmith

  • Portland, Oregon USA
  • 00:30 (UTC -08:00)
View GitHub Profile
<?php
class aPage extends PluginaPage
{
/**
* A shortcut method for loading fixture data.
*
* With this method in place you can simplify your aPage fixture file to a
* much more concise syntax using the "initial_areas" entry.
*
# my php configure command for mac os x and homebrew
./configure --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr/local/Cellar/libxml2/2.7.7 --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local/Cellar/jpeg/8b --with-png-dir=/usr/local/Cellar/libpng/1.2.44 --enable-gd-native-ttf --with-ldap=/usr --with-ldap-sasl=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-iodbc=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --enable-zend-multibyte --enable-zip --with-pcre-regex=/usr/local/Cellar/pcre/8.10 --with-readline=/usr/local/Cellar/readline/6.1 --with-mcrypt=/usr/local/Cellar/mcrypt/2.5
@pborreli
pborreli / Configuration.class.php
Created September 13, 2010 16:12
how to replace a specific widget by another for all generated forms in symfony
<?php
class xxxConfiguration extends sfXxxConfiguration
{
public function setup()
{
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions'));
}
@ornicar
ornicar / gist:670839
Created November 10, 2010 13:19
Git + ZendFramework submodule = modified: src/vendor/zend because of CRLF: the workaround
It's a shame, but https://github.com/zendframework/zf2 contains dozens of files with CRLF issues.
If like me, you set your Git core.autocrlf to true, then your ZendFramework submodule is always modified:
$ git status
# On branch master
# Changed but not updated:
#
# modified: src/vendor/zend
To fix it, you can set Git core.autocrlf to false *only for this submodule*.
@beberlei
beberlei / ActiveEntity.php
Created June 19, 2011 11:11
Doctrine 2.2 Traits Preview
<?php
use Doctrine\ORM\EntityManager,
Doctrine\ORM\Configuration,
Doctrine\ORM\Mapping\ClassMetadata;
/**
* Active Entity trait
*
* Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers