Skip to content

Instantly share code, notes, and snippets.

@dremendes
Last active January 2, 2016 23:39
Show Gist options
  • Save dremendes/8377599 to your computer and use it in GitHub Desktop.
Save dremendes/8377599 to your computer and use it in GitHub Desktop.
php snippet
<?php
while( $row = $query2->fetch_assoc() ){
if(isset($_SESSION['id_usuario']) && $row['id_usuario'] == $_SESSION['id_usuario']) $user = $row;
array_push($faculdades_users, $row);
}
//definir o $arquivos. input $pasta_usuario (opcional, default = $id_usuario)
//$arquivos = array();
//require('utils/arquivos_read.php');
//$params é o array que será utilizado pelo twig, já declarado no index.php
$params = array_merge($params, array(
'faculdade' => $facul,
'membros' => $facul_users,
'user' => $user
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment