Skip to content

Instantly share code, notes, and snippets.

View maykelsb's full-sized avatar

Maykel Santos Braz maykelsb

View GitHub Profile
{% block collection_widget %}
{% spaceless %}
<div class="collection">
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
<ul>
{% for rows in form %}
@maykelsb
maykelsb / gist:6064074
Last active December 20, 2015 03:29 — forked from anonymous/gist:6064061
function parsePostSegundaEtapa() {
// -- Validando $_POST e $_FILES
if (empty($_POST) ) {
$e = new Exception('Tipo de requisição inválida.');
throw $e;
}
$arquivos = array();
// -- Lista de documentos enviados pelo proponente
$documentos = array('contrato_social', 'rg_e_cpf', 'comp_endereco',
'comp_bancario', 'logo');