Skip to content

Instantly share code, notes, and snippets.

@marzsman
marzsman / new_gist_file
Created June 27, 2013 09:53
Order entities by name/title
<?php
$options = array(
'full_view' => false,
'list_type_toggle' => false,
'pagination' => true,
'list_type' => 'gallery',
'joins' => array('INNER JOIN elgg_objects_entity o ON e.guid = o.guid'),
'order_by' => 'o.title asc',
'limit' => 9
);
@marzsman
marzsman / Log all errors
Created May 7, 2013 21:26
Force PHP to show all errors
error_reporting(E_ALL);
ini_set( 'display_errors','1');