Skip to content

Instantly share code, notes, and snippets.

@sean9999
Created August 10, 2012 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean9999/3317936 to your computer and use it in GitHub Desktop.
Save sean9999/3317936 to your computer and use it in GitHub Desktop.
solsmart mongo thingy
<?php
$criteria = array(
'content.Testimonial.en' => array('$ne' => '')
);
$fields = array(
'content.Testimonial.en'
);
$q = array(
'criteria' => $criteria,
'fields' => $fields,
'sort' => array( 'meta.ProjectNumber' => 1 )
);
$quotes = $api->path('superchunkz/solsmart-projects/')->queryparams($q)->getPhp();
​?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment