Created
July 24, 2012 02:47
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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