Skip to content

Instantly share code, notes, and snippets.

View grsouzafilho's full-sized avatar

Gilberto Souza grsouzafilho

View GitHub Profile
<?php
use Zend\Db\Sql\Select;
// basic table
$select0 = new Select;
$select0->from('foo');
// 'SELECT "foo".* FROM "foo"';
@grsouzafilho
grsouzafilho / gist:7207710
Created October 29, 2013 01:20
Métodos CRUD do PDO
/**
* @Method responsável por fazer o insert utilizando PDO
* @method: insert
* @param array $dados
* @param string $tabela
* @return boolean
*/
public function insert( Array $dados, $tabela = NULL )
{