Skip to content

exercicio entregue#1

Open
fe2bala wants to merge 1 commit into
masterfrom
Entrega
Open

exercicio entregue#1
fe2bala wants to merge 1 commit into
masterfrom
Entrega

Conversation

@fe2bala
Copy link
Copy Markdown
Owner

@fe2bala fe2bala commented Oct 20, 2017

No description provided.

@fe2bala
Copy link
Copy Markdown
Owner Author

fe2bala commented Oct 20, 2017

@guilherme-gm

@guilherme-gm
Copy link
Copy Markdown

Vou dar review em breve

Copy link
Copy Markdown

@guilherme-gm guilherme-gm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fiz uma review bem rápida, espero não ter esquecido nada importante haha no geral são só alguns mini cuidados para se ter :) muito bom

$idProduto = filter_var($idProduto, FILTER_SANITIZE_NUMBER_INT);
if ($idProduto != FALSE) {
$this->data['produto'] = Produto::getProdutoPorId($idProduto);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e se for false?

Comment thread models/funcionario.php
public static function getFuncionarios() {
$conn = DB::getConnection();

$query = 'SELECT idFuncionario, nome, usuario, senha, cargo FROM funcionario';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabela deve ter nome igual do modelo, no caso com o F maiusculo, se não causará problemas em sistemas case-sensitive (linux)

<input type="text" name="nome" id="nome" class="form-control" value="<?= $produto->getNome() ?>" placeholder="Nome"/>
</div>
<div class="form-group">
<label for="titulo">Descricao</label>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o atributo for das labels estão sempre apontando pra "titulo" e não para os campos certos

<h3>Novo Produto</h3>
<form method="POST" action="">
<div class="form-group">
<label for="titulo">Nome</label>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os o atributo for das labels estão sempre apontando pra "titulo" e não para os campos certos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants