Skip to content

Instantly share code, notes, and snippets.

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 drupalista-br/3167695 to your computer and use it in GitHub Desktop.
Save drupalista-br/3167695 to your computer and use it in GitHub Desktop.
Sample code of how to integrate without using the built in html template.
<?php
include_once 'boleto-lib/Boleto.class.php';
$argumentos = array(
// Argumentos aqui.
);
// Instancia o objeto.
$boleto = Boleto::load_boleto($argumentos);
// Verifica se tudo correu bem.
if (is_object($boleto)) {
// Use o arquivo boleto.tpl.php como exemplo para criar o seu template customizado.
$settings = array('template' => '/home/minha_pasta/meu_layout_template.php');
// Informa ao objeto a localização do seu template customizado.
$boleto->settingsPropertySetter($settings);
// Imprime o boleto.
$boleto->output();
else {
// Seu error handler pois algo deu errado.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment