Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
Discover gists
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 | |
// 1° FORMULÁRIO | |
$data = $this->form->getData(); // PEGA OS DADOS DOS CAMPOS DO FORMULÁRIO | |
TSession::setData('dados_cliente', $data); // SALVA OS DADOS NA SESSÃO | |
// 2° FORMULÁRIO | |
$dados_cliente = TSession::getValue('dados_cliente'); // PEGA OS DADOS DA SESSÃO |
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 | |
$pdf = new TPDFDesigner; | |
$pdf->Image($imagem, $x=null, $y=null, $w=0, $h=0, $type='', $link=''); | |
?> |
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 | |
// POR NO htaccess | |
php_value memory_limit 512M |
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 | |
$btn_imprimir->id = 'btn_imprimir'; | |
# VIA jQUERY | |
TScript::create("$('#btn_imprimir').prop('disabled', true);"); # DESABILITA | |
TScript::create("$('#btn_imprimir').prop('disabled', true);"); # HABILITA | |
# VIA JAVASCRIPT |
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
openssl pkcs7 -print_certs -in old.p7b -out new.crt | |
# openssl pkcs7 -print_certs -in old.p7b -out new.cer |
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 | |
// 2000, 3000, 4000, 5000, etc.. ORDEM DA JANELA | |
parent::setStackOrder(3000); |
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 | |
new TMessage('info', 'MENSAGEM', null, 'TÍTULO DA MENSAGEM'); | |
// __construct ($tipo, $mensagem, $ação, $titulo) |
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 | |
public function onFuncao($param = null) | |
{ | |
try | |
{ | |
// VERIFICA A QUANTIDADE DE REGISTROS DO DATAGRID USANDO O MÉTODO getItems() E A FUNÇÃO count DO PHP | |
$qtd_registros = count($this->datagrid->getItems()); | |
echo '<pre>'; |
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 | |
ini_set('display_errors',0); | |
class Classe extends TPage | |
{ | |
// AGRADECIMENTO: EVERALDO CLARO DOS ANJOS |
NewerOlder