Skip to content

Instantly share code, notes, and snippets.

View melz's full-sized avatar

Melissa P. melz

  • Ontario, Canada
View GitHub Profile
@melz
melz / update_repos.sh
Created June 18, 2013 17:16
Update Debian Wheezy repos
# add to /etc/apt/sources.list
deb http://ftp.ca.debian.org/debian stable main contrib
deb http://ftp.debian.org/debian/ wheezy-updates main contrib
deb http://security.debian.org/ wheezy/updates main contrib
@melz
melz / sf14_get_raw_value
Created June 18, 2013 17:11
Obtain the raw value from an sfOutputEscaperArrayDecorator object
<?php
// 1) Escaping on; View template
$manufacturers = $sf_user->getAttribute('manufacturer_ids', array(), 'mdUser');
$user_manufacturers->getRawValue(); // returns an array()
// for variables in view template
echo $sf_data->getRaw('variable_name');
// disable escaping from class method output