Skip to content

Instantly share code, notes, and snippets.

@fxcosta
Last active November 16, 2015 18:28
Show Gist options
  • Save fxcosta/f84c09382662a4b059ca to your computer and use it in GitHub Desktop.
Save fxcosta/f84c09382662a4b059ca to your computer and use it in GitHub Desktop.
Exemplo de uso do Respect Relational no OpenCart
<?php
require_once __DIR__.'/vendor/autoload.php';
$respect = new \Respect\Relational\Mapper(new PDO('mysql:host=localhost;port=3306;dbname=irmaos_queiroz','root',''));
//$res = $respect->select('*')->from('oc_product')->fetchAll();
//var_dump($res);
$res = $respect->oc_product(array("model =" => "78501000"))->fetchAll();
var_dump($res);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment