Skip to content

Instantly share code, notes, and snippets.

@cgsmith
Created March 26, 2015 20:34
Show Gist options
  • Save cgsmith/37922dbd075fcdb37046 to your computer and use it in GitHub Desktop.
Save cgsmith/37922dbd075fcdb37046 to your computer and use it in GitHub Desktop.
<?php
/**
* Pre Zend 1.12.8
*/
$select = $this->getDbTable()->select();
$select->from(
$this->_getDbTable()->info(Zend_Db_Table_Abstract::NAME),
array(
"trim(concat_ws(' ', user.nameprefix, user.firstname, user.lastname)) as name",
"user.email",
// more data similar to 'user.email'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment